You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(39) |
Dec
(70) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(52) |
Feb
(168) |
Mar
(248) |
Apr
(143) |
May
(418) |
Jun
(558) |
Jul
(702) |
Aug
(311) |
Sep
(141) |
Oct
(350) |
Nov
(172) |
Dec
(182) |
| 2003 |
Jan
(320) |
Feb
(362) |
Mar
(356) |
Apr
(218) |
May
(447) |
Jun
(203) |
Jul
(745) |
Aug
(494) |
Sep
(175) |
Oct
(422) |
Nov
(554) |
Dec
(162) |
| 2004 |
Jan
(217) |
Feb
(353) |
Mar
(228) |
Apr
(407) |
May
(211) |
Jun
(270) |
Jul
(264) |
Aug
(198) |
Sep
(268) |
Oct
(227) |
Nov
(118) |
Dec
(47) |
| 2005 |
Jan
(207) |
Feb
(243) |
Mar
(297) |
Apr
(197) |
May
(281) |
Jun
(166) |
Jul
(164) |
Aug
(92) |
Sep
(155) |
Oct
(196) |
Nov
(189) |
Dec
(114) |
| 2006 |
Jan
(129) |
Feb
(219) |
Mar
(274) |
Apr
(213) |
May
(245) |
Jun
(220) |
Jul
(376) |
Aug
(347) |
Sep
(179) |
Oct
(493) |
Nov
(448) |
Dec
(339) |
| 2007 |
Jan
(304) |
Feb
(273) |
Mar
(237) |
Apr
(186) |
May
(215) |
Jun
(320) |
Jul
(229) |
Aug
(313) |
Sep
(331) |
Oct
(279) |
Nov
(347) |
Dec
(266) |
| 2008 |
Jan
(332) |
Feb
(280) |
Mar
(203) |
Apr
(277) |
May
(301) |
Jun
(356) |
Jul
(292) |
Aug
(203) |
Sep
(277) |
Oct
(142) |
Nov
(210) |
Dec
(239) |
| 2009 |
Jan
(250) |
Feb
(193) |
Mar
(174) |
Apr
(183) |
May
(342) |
Jun
(230) |
Jul
(292) |
Aug
(161) |
Sep
(204) |
Oct
(280) |
Nov
(281) |
Dec
(175) |
| 2010 |
Jan
(113) |
Feb
(106) |
Mar
(199) |
Apr
(166) |
May
(298) |
Jun
(147) |
Jul
(175) |
Aug
(192) |
Sep
(71) |
Oct
(79) |
Nov
(58) |
Dec
(55) |
| 2011 |
Jan
(83) |
Feb
(169) |
Mar
(142) |
Apr
(207) |
May
(311) |
Jun
(183) |
Jul
(218) |
Aug
(190) |
Sep
(158) |
Oct
(197) |
Nov
(93) |
Dec
(74) |
| 2012 |
Jan
(92) |
Feb
(50) |
Mar
(64) |
Apr
(45) |
May
(100) |
Jun
(70) |
Jul
(3) |
Aug
(1) |
Sep
(2) |
Oct
(5) |
Nov
(7) |
Dec
(4) |
| 2013 |
Jan
(6) |
Feb
(2) |
Mar
(2) |
Apr
(4) |
May
(3) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2014 |
Jan
(2) |
Feb
(2) |
Mar
(2) |
Apr
(3) |
May
(3) |
Jun
(1) |
Jul
|
Aug
(4) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Linda O. <lo...@us...> - 2002-01-19 17:40:33
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools
In directory usw-pr-cvs1:/tmp/cvs-serv27212/uk/ac/leeds/ccg/geotools
Modified Files:
GeoPolygon.java
Log Message:
Fixed JavaDoc comments.
Index: GeoPolygon.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/GeoPolygon.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -w -C2 -d -r1.19 -r1.20
*** GeoPolygon.java 2001/08/01 12:32:18 1.19
--- GeoPolygon.java 2002/01/19 17:40:30 1.20
***************
*** 1,7 ****
/*
! * @(#)GeoPolygon.java 0.5 17 April 1997 James Macgill
*
*/
package uk.ac.leeds.ccg.geotools;
--- 1,10 ----
/*
! * GeoTools java GIS tookit (c) The Centre for Computational Geography 2002
*
+ * This library is free software; you can redistribute it and/or modify it under the terms
+ * of the GNU Lesser General Public License as published by the Free Software Foundation version 2.1
*/
+
package uk.ac.leeds.ccg.geotools;
***************
*** 11,50 ****
/**
! * This class is intended for storing georaphical polygons such as boundry data
! * for wards, costlines etc.<p>
*
! * @author Jamaes Macgill
! * @version 0.5 17 April 1997
*/
public class GeoPolygon extends GeoShape {
/**
! * control debugging. For now, either turn it off or on
*/
private final static boolean DEBUG=false;
/**
! * Performance switch, to turn of use of Vector. use with CARE
*/
private boolean useVector = true;
/**
! * Polygon centroid coordinates
*/
private double xcent,ycent;
/**
! * Number of points in polygon
*/
public int npoints;
/**
! * Area of polygon
*/
private double area;
/**
! * Array of points
*/
! public double xpoints[],ypoints[];
private Vector storedPoints = null;
private boolean pointsStored = false;
--- 14,66 ----
/**
! * This class is intended for storing georaphical polygons such as boundary data
! * for wards, coastlines etc.<p>
*
! * $Log$
! * Revision 1.20 2002/01/19 17:40:30 loxnard
! * Fixed JavaDoc comments.
! *
! *
! * @author James Macgill
! * @author Mathieu Van Loon - getPointsAsArrayX, getPointsAsArrayY, dropVector
! * @version $Revision$ $Date$
! * @since 0.5.0
*/
public class GeoPolygon extends GeoShape {
/**
! * Control debugging. For now, either turn it off or on.
*/
private final static boolean DEBUG=false;
/**
! * Performance switch, to turn off use of Vector. Use with CARE
*/
private boolean useVector = true;
/**
! * Polygon centroid coordinates.
*/
private double xcent,ycent;
/**
! * Number of points in polygon.
*/
public int npoints;
/**
! * Area of polygon.
*/
private double area;
/**
! * Array of points.
*/
! public double xpoints[];
!
! /**
! * Array of points.
! */
! public double[] ypoints;
!
private Vector storedPoints = null;
private boolean pointsStored = false;
***************
*** 53,61 ****
public static final int OUTSIDE = -1;
public static final int NA = Integer.MAX_VALUE;
/**
! * Create an empty polygon
*/
public GeoPolygon(){
--- 69,83 ----
+ /**
+ * Probably redundant constant.
+ */
public static final int OUTSIDE = -1;
+ /**
+ * Probably redundant constant.
+ */
public static final int NA = Integer.MAX_VALUE;
/**
! * Create an empty polygon.
*/
public GeoPolygon(){
***************
*** 68,79 ****
/**
! * Construct a polygon with full details
*
! * @param id polygon ID
! * @param xcent x coordinate of centroid
! * @param ycent y coordinate of centroid
! * @param xpoints vector of x values in Doubles (npoints in size)
! * @param ypoints vector of y values in Doubles (npoints in size)
! * @param npoints number of points
*/
public GeoPolygon(int id,double xcent,double ycent,Vector xpoints,Vector ypoints) {
--- 90,100 ----
/**
! * Construct a polygon with full details.
*
! * @param id Polygon ID.
! * @param xcent X-coordinate of centroid.
! * @param ycent Y-coordinate of centroid.
! * @param xpoints Vector of x values in Doubles (npoints in size).
! * @param ypoints Vector of y values in Doubles (npoints in size) where npoints = number of points.
*/
public GeoPolygon(int id,double xcent,double ycent,Vector xpoints,Vector ypoints) {
***************
*** 111,122 ****
/**
! * Construct a polygon with full details
*
! * @param id polygon ID
! * @param xcent x coordinate of centroid
! * @param ycent y coordinate of centroid
! * @param xpoints array of x values (npoints in size)
! * @param ypoints array of y values (npoints in size)
! * @param npoints number of points
*/
public GeoPolygon(int id,double xcent,double ycent,double[] xpoints,double[] ypoints,int npoints) {
--- 132,143 ----
/**
! * Construct a polygon with full details.
*
! * @param id Polygon ID.
! * @param xcent X-coordinate of centroid.
! * @param ycent Y-coordinate of centroid.
! * @param xpoints Array of x values (npoints in size).
! * @param ypoints Array of y values (npoints in size).
! * @param npoints Number of points.
*/
public GeoPolygon(int id,double xcent,double ycent,double[] xpoints,double[] ypoints,int npoints) {
***************
*** 150,159 ****
/**
! * Construct a polygon with no defined centroid
*
! * @param id Polygon ID
! * @param xpoints array of x values (npoints in size)
! * @param ypoints array of y values (npoints in size)
! * @param npoints number of points
*/
public GeoPolygon(int id,double[] xpoints,double[] ypoints,int npoints) {
--- 171,180 ----
/**
! * Construct a polygon with no defined centroid.
*
! * @param id Polygon ID.
! * @param xpoints Array of x values (npoints in size).
! * @param ypoints Array of y values (npoints in size).
! * @param npoints Number of points.
*/
public GeoPolygon(int id,double[] xpoints,double[] ypoints,int npoints) {
***************
*** 162,170 ****
/**
! * Construct a polygon and generate its centroid
! * 08/May/2000 added call to calculateCentroidLocation
! * @author James Macgill JM
! * @param id Polygon ID
! * @param points[] an Array of points to build the polygon off
*/
public GeoPolygon(int id,GeoPoint[] points) {
--- 183,189 ----
/**
! * Construct a polygon and generate its centroid.
! * @param id Polygon ID.
! * @param points An array of points to build the polygon off.
*/
public GeoPolygon(int id,GeoPoint[] points) {
***************
*** 190,198 ****
/**
! * Construct a polygon with no defined centroid or ID
*
! * @param xpoints array of x values (npoints in size)
! * @param ypoints array of y values (npoints in size)
! * @param npoints number of points
*/
public GeoPolygon(double[] xpoints,double[] ypoints,int npoints) {
--- 209,217 ----
/**
! * Construct a polygon with no defined centroid or ID.
*
! * @param xpoints Array of x values (npoints in size).
! * @param ypoints Array of y values (npoints in size).
! * @param npoints Number of points.
*/
public GeoPolygon(double[] xpoints,double[] ypoints,int npoints) {
***************
*** 200,208 ****
/**
! * Construct an empty polygon with ID and centroid only
*
! * @param id polygon ID
! * @param xcent x coordinate of centroid
! * @param ycent y coordinate of centroid
*/
public GeoPolygon(int id,double xcent,double ycent) {
--- 219,227 ----
/**
! * Construct an empty polygon with ID and centroid only.
*
! * @param id Polygon ID.
! * @param xcent X-coordinate of centroid.
! * @param ycent Y-coordinate of centroid.
*/
public GeoPolygon(int id,double xcent,double ycent) {
***************
*** 218,224 ****
/**
! * Construct a GeoPolygon based on an existing GeoPolygon
*
! * @param poly GeoPolygon to clone
*/
public GeoPolygon(GeoPolygon poly) {
--- 237,243 ----
/**
! * Construct a GeoPolygon based on an existing GeoPolygon.
*
! * @param poly GeoPolygon to clone.
*/
public GeoPolygon(GeoPolygon poly) {
***************
*** 226,233 ****
/**
! * Add a vertex to the polygon
*
! * @param x x coordinate of point to add
! * @param y y coordinate of point to add
*/
public void addPoint(double x,double y) {
--- 245,252 ----
/**
! * Add a vertex to the polygon.
*
! * @param x X-coordinate of point to add.
! * @param y Y-coordinate of point to add.
*/
public void addPoint(double x,double y) {
***************
*** 256,260 ****
extendBounds(x,y);
//calculateArea();//TODO JM:v.wastefull, save until a area request is made?
! //calculateCentroidLocation();//TODO JM:v.wastefull, save until a area request is made?
areaDone=centroidDone=false;
}
--- 275,279 ----
extendBounds(x,y);
//calculateArea();//TODO JM:v.wastefull, save until a area request is made?
! //calculateCentroidLocation();//TODO JM:v.wasteful, save until an area request is made?
areaDone=centroidDone=false;
}
***************
*** 264,270 ****
/**
! * Add a vertex to the polygon
*
! * @param p A GeoPoint to add
*/
public void addPoint(GeoPoint p){
--- 283,289 ----
/**
! * Add a vertex to the polygon.
*
! * @param p A GeoPoint to add.
*/
public void addPoint(GeoPoint p){
***************
*** 273,279 ****
/**
! * Returns a standard AWT.Polygon from the GeoPolygon
! * <em>note</em> The GeoPolygon used doubles , the Polygon uses ints
* so there will be precision loss.
*/
public Polygon toAWTPolygon() {
--- 292,299 ----
/**
! * Returns a standard AWT.Polygon from the GeoPolygon.
! * <em>Note</em> The GeoPolygon uses doubles, the Polygon uses ints,
* so there will be precision loss.
+ * @return Standard AWT.Polygon.
*/
public Polygon toAWTPolygon() {
***************
*** 291,299 ****
/**
! * Return the polygon ID
*/
public int getID(){
return id;
}
public void setID(int id){
this.id=id;
--- 311,324 ----
/**
! * Return the polygon ID.
! * @return Polygon ID.
*/
public int getID(){
return id;
}
+ /**
+ * Set the polygon ID.
+ * @param id Polygon ID.
+ */
public void setID(int id){
this.id=id;
***************
*** 304,310 ****
* This value is calculated from the polygon data on construction
* and upon any changes to the polygon's points.
! * @since 0.7.7.1 8/May/2000
! * @author James Macgill
! * @return double The area of this polygon
*/
public double getArea(){
--- 329,333 ----
* This value is calculated from the polygon data on construction
* and upon any changes to the polygon's points.
! * @return double The area of this polygon.
*/
public double getArea(){
***************
*** 316,324 ****
/**
! * Calculates and returns the perimeter of this polygon.<br>
! * Value is currently generated per-request.
! * @author James Macgill JM
! * @since 0.7.7.1 8/May/2000
! * @return double the perimeter of this polygon
*/
public double getPerimeter(){
--- 339,345 ----
/**
! * Calculate and return the perimeter of this polygon.<br>
! * Value is currently generated per request.
! * @return double The perimeter of this polygon.
*/
public double getPerimeter(){
***************
*** 333,343 ****
/**
* Return the centroid of this polygon.
! * this value was either supplied to the constructor or has been
! * calculated automaticaly.<br>
! * automaticaly calculated centroids are not guaranteed to be inside the
! * polygon, insted they represent the polygons center of mass.
! * @since 0.7.7.1 8/May/2000
! * @author James Macgill JM
! * @return GeoPoint The centroid of this polygon
*/
public GeoPoint getCentroidLocation(){
--- 354,362 ----
/**
* Return the centroid of this polygon.
! * This value was either supplied to the constructor or has been
! * calculated automatically.<br>
! * Automatically calculated centroids are not guaranteed to be inside the
! * polygon. Instead, they represent the polygon's centre of mass.
! * @return GeoPoint The centroid of this polygon.
*/
public GeoPoint getCentroidLocation(){
***************
*** 349,353 ****
/**
! * Return the number of points that make the polygon
*/
public int getNPoints(){
--- 368,373 ----
/**
! * Return the number of points that make the polygon.
! * @return Number of points.
*/
public int getNPoints(){
***************
*** 356,365 ****
/**
! * get the geopoints as as an array of x or y
! * @author Mathieu van Loon <ma...@PL...>
*/
public double[] getPointsAsArrayX() {
return xpoints;
}
public double[] getPointsAsArrayY() {
return ypoints;
--- 376,389 ----
/**
! * Get the geopoints as an array of x.
! * @return Geopoints as array of x.
*/
public double[] getPointsAsArrayX() {
return xpoints;
}
+ /**
+ * Get the geopoints as an array of y.
+ * @return Geopoints as an array of y.
+ */
public double[] getPointsAsArrayY() {
return ypoints;
***************
*** 369,375 ****
* Drop the use of a Vector to store the points. This method
* is available for performance reasons. You will only want to use
! * this method if you store a lot of GeoPolygons, and you wish
* to decrease the memory load.
- * @author Mathieu van Loon <ma...@PL...>
*/
public void dropVector() {
--- 393,398 ----
* Drop the use of a Vector to store the points. This method
* is available for performance reasons. You will only want to use
! * this method if you store a lot of GeoPolygons and you wish
* to decrease the memory load.
*/
public void dropVector() {
***************
*** 378,381 ****
--- 401,408 ----
}
+ /**
+ * Points which make up this polygon stored in a Vector.
+ * @return A Vector of points which make up the polygon.
+ */
public final Vector getPoints(){
if(useVector)
***************
*** 393,396 ****
--- 420,428 ----
}
+ /**
+ * Tests for equality with another object.
+ * @param o The object to test against for equality.
+ * @return True only if IDs are equal and polygons are pointwise equivalent.
+ */
public boolean equals(Object o){
if(! (o instanceof GeoPolygon)){return false;}
***************
*** 401,404 ****
--- 433,441 ----
}
+ /**
+ * Tests for pointwise equality.
+ * @param b The object to test for equality against.
+ * @return True if polygons are pointwise equivalent.
+ */
public boolean equalsIgnoreID(GeoPolygon b){
int iCount = 0;
***************
*** 434,442 ****
/**
! * Tests to see if the polygon is Clockwise<br>
! * anti-clockwise polygons often represent holes<br>
! * this is computed on the fly so might be expensive.<br>
! * Addapted from C function writen by Paul Bourke.
! * @return boolean true if polygon is clockwise.
*/
public boolean isClockwise(){
--- 471,479 ----
/**
! * Tests to see if the polygon is clockwise.<br>
! * Anti-clockwise polygons often represent holes.<br>
! * This is computed on the fly, so might be expensive.<br>
! * Adapted from C function written by Paul Bourke.
! * @return boolean True if polygon is clockwise.
*/
public boolean isClockwise(){
***************
*** 461,470 ****
/**
! * Calculates the area of the polygon
! * the result is stored in the private member variable area<br>
! * Must be called during construction and after any changes to the polygons point set.
! * N.B. Polygons with anti-clockwise point storage will result in a negative area
! * @author James Macgill
! * @since 0.7.7.1 08/May/00
*/
private void calculateArea(){
--- 498,505 ----
/**
! * Calculates the area of the polygon.
! * The result is stored in the private member variable area.<br>
! * Must be called during construction and after any changes to the polygon's pointset.
! * N.B. Polygons with anti-clockwise point storage will result in a negative area.
*/
private void calculateArea(){
***************
*** 475,479 ****
double area;
double total =0;
! //Calculate area of each tapezoid formed by droping lines from each pair of point to the x-axis.
//x[i]<x[i-1] will contribute a negative area
for(int i=0;i<npoints-1;i++){
--- 510,514 ----
double area;
double total =0;
! //Calculate area of each trapezoid formed by droping lines from each pair of point to the x-axis.
//x[i]<x[i-1] will contribute a negative area
for(int i=0;i<npoints-1;i++){
***************
*** 487,502 ****
/**
! * Calculates a waighted centroid location for this polygon.<br>
! * the result is stored in the private member variables xcent and ycent
! * overwriting any values that may already be stored their.<br>
! * area must be set before calling this method, e.g. a call to calculateArea should have been made
* during construction.<br>
! * Polygons must have clockwise point encoding in order to have a centroid, holes (encoded
! * with anti-clockwise points) have undefined behavior at this point.
! * N.B. the centroid will be the 'center of mass' but this is not guaranteed to be inside the
* polygon.
! * @author James Macgill JM
! * @since 0.7.7.1 08/May/2000
! * @see #calculateArea
*/
protected void calculateCentroidLocation(){
--- 522,535 ----
/**
! * Calculates a weighted centroid location for this polygon.<br>
! * The result is stored in the private member variables, xcent and ycent,
! * overwriting any values that may already be stored there.<br>
! * Area must be set before calling this method, e.g. a call to calculateArea should have been made
* during construction.<br>
! * Polygons must have clockwise point encoding in order to have a centroid. Holes (encoded
! * with anti-clockwise points) have undefined behaviour at this point.
! * N.B. The centroid will be the 'centre of mass' but this is not guaranteed to be inside the
* polygon.
! * @see uk.ac.leeds.ccg.geotools.GeoPolygon#calculateArea.
*/
protected void calculateCentroidLocation(){
***************
*** 531,536 ****
* Will test the given polygon to see if it is adjacent to this polygon.
* <br>This code is somewhat experimental and has not been fully tested.
! * @param gp The GeoPolygon to test for contiguity
! * @return boolean, true if this polygon and gp share two or more verteces that are consecetive in both polygons
*/
public boolean isContiguous(GeoPolygon gp){
--- 564,569 ----
* Will test the given polygon to see if it is adjacent to this polygon.
* <br>This code is somewhat experimental and has not been fully tested.
! * @param gp The GeoPolygon to test for contiguity.
! * @return boolean True if this polygon and gp share two or more vertices that are consecutive in both polygons.
*/
public boolean isContiguous(GeoPolygon gp){
***************
*** 568,575 ****
/**
! * Calculates the length of all arcs that are common both to this polygon and to the polygon pased in.
! * @param gp The polygon to measure shared lengths with
* <br>This code is somewhat experimental and has not been fully tested.
! * @return double the total length of all shared arcs between the two polygons, returns as 0 if there are no shared arcs/
*/
public double getContiguousLength(GeoPolygon gp){
--- 601,608 ----
/**
! * Calculates the length of all arcs that are common both to this polygon and to the polygon passed in.
! * @param gp The polygon to measure shared lengths with.
* <br>This code is somewhat experimental and has not been fully tested.
! * @return double The total length of all shared arcs between the two polygons. Returns as 0 if there are no shared arcs.
*/
public double getContiguousLength(GeoPolygon gp){
***************
*** 601,611 ****
/**
! * Tests the two provied points to see if they apeare next to each other in any of this
! * polygons arcs. The test is regardless of order.
*
* <br>This code is somewhat experimental and has not been fully tested.
! * @param p1 the first point to test
! * @param p2 the second point to test
! * @return boolean true if p1 follows p2 or p2 follows p1, false in any other case, including p1 and/or p2 being absent from the polygon
*
*/
--- 634,644 ----
/**
! * Tests the two provied points to see if they appear next to each other in any of this
! * polygon's arcs. The test is regardless of order.
*
* <br>This code is somewhat experimental and has not been fully tested.
! * @param p1 The first point to test.
! * @param p2 The second point to test.
! * @return boolean True if p1 follows p2 or p2 follows p1. False in any other case, including p1 and/or p2 being absent from the polygon.
*
*/
***************
*** 630,638 ****
/**
! * Provides a list of all of the polygons from the provided list that are adjacent to this one
*
* <br>This code is somewhat experimental and has not been fully tested.
! * @param polys a Vector of GeoPolgyons to test against for contiguity.
! * @return Vector a sub set of polys that contains only the polygons that are adjacent to this one.
*/
public Vector getContiguityList(Vector polys){
--- 663,671 ----
/**
! * Provides a list of all of the polygons from the provided list that are adjacent to this one.
*
* <br>This code is somewhat experimental and has not been fully tested.
! * @param polys A Vector of GeoPolgyons to test against for contiguity.
! * @return Vector A sub-set of polys that contains only the polygons that are adjacent to this one.
*/
public Vector getContiguityList(Vector polys){
***************
*** 669,675 ****
* <br>p1 and p2 SHOULD be points that are in this polygon.
* <br>This code is somewhat experimental and has not been fully tested.
! * @param p1 GeoPoint the first endpoint of the line to test
! * @param p2 GeoPoint the second endpoint of the line to test
! * @param polys A Vector of polygons to test the line agains for inside/outside ness.
*/
public boolean isOnOutside(GeoPoint p1,GeoPoint p2,Vector polys){
--- 702,709 ----
* <br>p1 and p2 SHOULD be points that are in this polygon.
* <br>This code is somewhat experimental and has not been fully tested.
! * @param p1 GeoPoint The first endpoint of the line to test.
! * @param p2 GeoPoint The second endpoint of the line to test.
! * @param polys A Vector of polygons to test the line against for inside/outside ness.
! * @return boolean True if external.
*/
public boolean isOnOutside(GeoPoint p1,GeoPoint p2,Vector polys){
***************
*** 688,697 ****
/**
! * Tests this polygon to see if contains at least one edge that is on the outside of the set of polygons
* described in the provided set.
*
* <br>This code is somewhat experimental and has not been fully tested.
! * @param polys A Vector of polygons to test against
! * @param boolean true if any edge of this polygon is not contiguous with any of the polgyons listed in polys
*/
public boolean isOnOutside(Vector polys){
--- 722,731 ----
/**
! * Tests this polygon to see if it contains at least one edge that is on the outside of the set of polygons
* described in the provided set.
*
* <br>This code is somewhat experimental and has not been fully tested.
! * @param polys A Vector of polygons to test against.
! * @return boolean True if external.
*/
public boolean isOnOutside(Vector polys){
***************
*** 707,710 ****
--- 741,753 ----
}
+ /**
+ * A static method that will dissolve all internal borders within the provided set to create a single polygon
+ * which describes the outline of all the given polygons combined.
+ *
+ * <br>This code is somewhat experimental and has not been fully tested.
+ * In particular, if the polygons do not define a single clump then it will not work as expected.
+ * @param polys A Vector of GeoPolgyons to dissolve.
+ * @return GeoPolygon The dissolved version of the polys set.
+ */
public static GeoPolygon dissolve(Vector polys){
return dissolve(0,polys);
***************
*** 712,723 ****
/**
! * A static method that will disolve all internal borders within the provided set to create a single polygon
* which describes the outline of all the given polygons combined.
*
* <br>This code is somewhat experimental and has not been fully tested.
! * in particular, if the polygons do not define a single clump then it will not work as expected.
! * @param polys A Vector of GeoPolgyons to disolve.
! * @param an id for this new polygon.
! * @return GeoPolygon the disolved version of the polys set.
*/
public static GeoPolygon dissolve(int id,Vector polys){
--- 755,766 ----
/**
! * A static method that will dissolve all internal borders within the provided set to create a single polygon
* which describes the outline of all the given polygons combined.
*
* <br>This code is somewhat experimental and has not been fully tested.
! * In particular, if the polygons do not define a single clump then it will not work as expected.
! * @param polys A Vector of GeoPolgyons to dissolve.
! * @param id ID for this new polygon.
! * @return GeoPolygon The dissolved version of the polys set.
*/
public static GeoPolygon dissolve(int id,Vector polys){
***************
*** 747,756 ****
/* TODO JM: sort out holes properly by implementing cases 2 and 3, although a change in the represenation of
* polygon toplogy may come first.
! * this part represents a hole.
* There are three states that this hole could be in for this zone.
* 1) Empty, with no polygons at all inside it.
* 2) Filled, with polygons that belong to this zone.
* 3) Semi-filled, with some or all of the polygons inside it not belonging to this zone.
! * 3 is a hard case that will need to be planed out carefully and proably requires
* more constructive geometry methods than exist at the moment
*/
--- 790,799 ----
/* TODO JM: sort out holes properly by implementing cases 2 and 3, although a change in the represenation of
* polygon toplogy may come first.
! * This part represents a hole.
* There are three states that this hole could be in for this zone.
* 1) Empty, with no polygons at all inside it.
* 2) Filled, with polygons that belong to this zone.
* 3) Semi-filled, with some or all of the polygons inside it not belonging to this zone.
! * 3 is a hard case that will need to be planned out carefully and probably requires
* more constructive geometry methods than exist at the moment
*/
***************
*** 768,772 ****
//case 2 or 3 from above.
//There is something attached to this hole, other than the polygon to which it is attached.
! //for now we will assume a simple case 2 by removing all polygons attached to this hole
//this is the danger that a polygon will be attached to a polygon that is attached to this hole.
//TODO JM: implement case 2 properly and sort out case 3
--- 811,815 ----
//case 2 or 3 from above.
//There is something attached to this hole, other than the polygon to which it is attached.
! //For now we will assume a simple case 2 by removing all polygons attached to this hole
//this is the danger that a polygon will be attached to a polygon that is attached to this hole.
//TODO JM: implement case 2 properly and sort out case 3
***************
*** 935,939 ****
}//while !finished
! //re-add any empty holes that were in some of the origional polygons.
if(toDo.size()>0){
if(DEBUG)System.out.println("Finished with "+toDo.size());
--- 978,982 ----
}//while !finished
! //re-add any empty holes that were in some of the original polygons.
if(toDo.size()>0){
if(DEBUG)System.out.println("Finished with "+toDo.size());
***************
*** 947,953 ****
/**
* Combines this polygon with the provided polygon to create a new single polygon with the combined outline of both.
! * <br> both polygons must be contiguous.
! * @param gp the GeoPolygon to disolve into this one.
! * @return GeoPolygon the resulting disolved polygon.
*/
public GeoPolygon dissolve(GeoPolygon gp){
--- 990,996 ----
/**
* Combines this polygon with the provided polygon to create a new single polygon with the combined outline of both.
! * <br> Both polygons must be contiguous.
! * @param gp The GeoPolygon to dissolve into this one.
! * @return GeoPolygon The resulting dissolved polygon.
*/
public GeoPolygon dissolve(GeoPolygon gp){
***************
*** 1022,1026 ****
* Tests to see if a point is contained by this polygon.
* @param p The GeoPoint to test.
! * @return boolean true if point is contained by this polygon.
*/
public boolean contains(GeoPoint p){
--- 1065,1069 ----
* Tests to see if a point is contained by this polygon.
* @param p The GeoPoint to test.
! * @return boolean True if point is contained by this polygon.
*/
public boolean contains(GeoPoint p){
***************
*** 1089,1096 ****
/**
! * Calcualtes and returns the perimiter of this polygon
! * @deprecated miss spelling use getPerimeter instead.
! * @see getPerimeter
! * @return double the perimiter of this polygon
*/
public double getPerimiter(){
--- 1132,1139 ----
/**
! * Calculates and returns the perimeter of this polygon.
! * @return double The perimeter of this polygon.
! * @see uk.ac.leeds.ccg.geotools.GeoPolygon#getPerimeter.
! * @deprecated misspelling. Use uk.ac.leeds.ccg.geotools.GeoPolygon#getPerimeter instead.
*/
public double getPerimiter(){
***************
*** 1104,1111 ****
/**
! * Calculates and returns the length of the segment between the specifed points
! * @param start int of the index of the start point
! * @param end int of the index of the end point
! * @return double length of segment
*/
public double getSegmentLength(int start,int end){
--- 1147,1154 ----
/**
! * Calculates and returns the length of the segment between the specifed points.
! * @param start Int of the index of the start point.
! * @param end Int of the index of the end point.
! * @return double Length of segment.
*/
public double getSegmentLength(int start,int end){
***************
*** 1123,1126 ****
--- 1166,1172 ----
return dist;
}
+ /**
+ * Gets a representation of this polygon as a String.
+ * @return String in the form "GeoPolygon : [id <i>id</i>] {x1,y1,...,xn,yn}".*/
public String toString(){
StringBuffer sb = new StringBuffer();
***************
*** 1138,1141 ****
--- 1184,1193 ----
}
+ /**
+ * Tests if this polygon contains the specified co-ordinate.
+ * @param x X value of coordinate.
+ * @param y Y value of coordinate.
+ * @return True if coordinate is inside, if coordinate lies exactly on boundary, behaviour is undefined.
+ */
public boolean contains(double x,double y){
GeoPoint p = new GeoPoint(x,y);
***************
*** 1147,1150 ****
--- 1199,1205 ----
/*
* $Log$
+ * Revision 1.20 2002/01/19 17:40:30 loxnard
+ * Fixed JavaDoc comments.
+ *
* Revision 1.19 2001/08/01 12:32:18 ianturton
* modification submited by Michael Becke <becke@u.washington.edu> to reduce
|
|
From: Linda O. <lo...@us...> - 2002-01-19 17:11:01
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools
In directory usw-pr-cvs1:/tmp/cvs-serv18640/uk/ac/leeds/ccg/geotools
Modified Files:
Viewer.java
Log Message:
Fixed JavaDoc comments.
Index: Viewer.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/Viewer.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -w -C2 -d -r1.38 -r1.39
*** Viewer.java 2001/12/14 01:56:34 1.38
--- Viewer.java 2002/01/19 17:10:58 1.39
***************
*** 1,2 ****
--- 1,9 ----
+ /*
+ * GeoTools java GIS tookit (c) The Centre for Computational Geography 2002
+ *
+ * This library is free software; you can redistribute it and/or modify it under the terms
+ * of the GNU Lesser General Public License as published by the Free Software Foundation version 2.1
+ */
+
package uk.ac.leeds.ccg.geotools;
[...1853 lines suppressed...]
+ /**
+ * Swaps the positions of two themes in a stack.
+ * @param a Theme a.
+ * @param b Theme b.
+ */
public void swapThemes(Theme a,Theme b){
themeStack.swapThemes(a,b);
***************
*** 1595,1598 ****
--- 1838,1846 ----
}
+ /**
+ * Swaps the positions of two themes in a stack.
+ * @param a Weight of theme a.
+ * @param b Weight of theme b.
+ */
public void swapThemes(int a,int b){
themeStack.swapThemes(a,b);
|
|
From: Artur H. <ko...@us...> - 2002-01-17 20:52:28
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/ogc
In directory usw-pr-cvs1:/tmp/cvs-serv19539
Modified Files:
RemoteConnection.java
Log Message:
URI bug in RemoteConnection corrected
Index: RemoteConnection.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/ogc/RemoteConnection.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -w -C2 -d -r1.10 -r1.11
*** RemoteConnection.java 2001/12/20 15:27:23 1.10
--- RemoteConnection.java 2002/01/17 20:52:24 1.11
***************
*** 91,95 ****
private String server = null;
private String proxy = null;
! private URI url = null;
private ProtocolIfc connection = null;
--- 91,95 ----
private String server = null;
private String proxy = null;
! private wttools.protocols.URI url = null;
private ProtocolIfc connection = null;
***************
*** 100,104 ****
}
! protected void initConnection(URI uri)
throws IOException
{
--- 100,104 ----
}
! protected void initConnection(wttools.protocols.URI uri)
throws IOException
{
***************
*** 115,121 ****
prln("send qu:1 "+server+" "+query);
if(server.indexOf('?') == -1)
! url = new URI(server+"?"+query);
else
! url = new URI(server+"&"+query);
prln("send qu:2 "+url.toString());
return sendRequest(new URL(url.toString()));
--- 115,121 ----
prln("send qu:1 "+server+" "+query);
if(server.indexOf('?') == -1)
! url = new wttools.protocols.URI(server+"?"+query);
else
! url = new wttools.protocols.URI(server+"&"+query);
prln("send qu:2 "+url.toString());
return sendRequest(new URL(url.toString()));
***************
*** 126,133 ****
prln("send req: URL="+url.toString());
if (connection == null) {
! initConnection(new URI(url));
} // end of if (connection == null)
else {
! connection.setURI(new URI(url));
} // end of else of if (connection == null)
System.out.println("end of sendReq "+connection);
--- 126,133 ----
prln("send req: URL="+url.toString());
if (connection == null) {
! initConnection(new wttools.protocols.URI(url));
} // end of if (connection == null)
else {
! connection.setURI(new wttools.protocols.URI(url));
} // end of else of if (connection == null)
System.out.println("end of sendReq "+connection);
***************
*** 209,212 ****
--- 209,215 ----
*
* $Log$
+ * Revision 1.11 2002/01/17 20:52:24 kobit
+ * URI bug in RemoteConnection corrected
+ *
* Revision 1.10 2001/12/20 15:27:23 ianturton
* various fixes and small mods to make WMSExample actually run. Can now
|
|
From: Ian T. <ian...@us...> - 2002-01-17 16:57:16
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile
In directory usw-pr-cvs1:/tmp/cvs-serv19633
Modified Files:
Tag: Release_0_8_x-branch
DbfFile.java Dbf.java DbfNet.java DbfFileWriter.java
Log Message:
changed the way the readers handle badly formated input numbers
Index: DbfFile.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfFile.java,v
retrieving revision 1.5
retrieving revision 1.5.4.1
diff -w -C2 -d -r1.5 -r1.5.4.1
*** DbfFile.java 2001/03/19 15:50:54 1.5
--- DbfFile.java 2002/01/17 16:54:01 1.5.4.1
***************
*** 17,21 ****
*/
public class DbfFile implements DbfConsts{
! static final boolean DEBUG=true;
int dbf_id;
int last_update_d,last_update_m,last_update_y;
--- 17,21 ----
*/
public class DbfFile implements DbfConsts{
! static final boolean DEBUG=false;
int dbf_id;
int last_update_d,last_update_m,last_update_y;
***************
*** 181,188 ****
rFile.seek(data_offset+(rec_size*row));
for(int i=0;i< rec_size;i++){
! // we could do some checking here.
! record.append((char)rFile.readUnsignedByte());
}
return record;
}
--- 181,191 ----
rFile.seek(data_offset+(rec_size*row));
+ //Multi byte character modification thanks to Hisaji ONO
+ byte[] strbuf = new byte[rec_size]; // <---- byte array buffer fo storing string's byte data
for(int i=0;i<rec_size;i++){
! //************************//
! strbuf[i] = dFile.readByte(); // <---- read string's byte data
}
+ record.append(new String(strbuf)); // <- append byte array to String Buffer
return record;
}
***************
*** 220,229 ****
--- 223,240 ----
break;
case 'N':
+ try{
record.addElement(I.decode(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Integer(0));
+ }
break;
case 'F':
+ try{
record.addElement(F.valueOf(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Float(0.0));
+ }
break;
default:
***************
*** 272,279 ****
--- 283,294 ----
sb.append((char)rFile.readUnsignedByte());
record=sb.toString();
+ try{
column[i-start]=new Integer(record.substring(fielddef[col].fieldstart,
fielddef[col].fieldstart+fielddef[col].fieldlen));
+ }catch(java.lang.NumberFormatException e){
+ column[i-start]=new Integer(0);
}
}
+ }
catch(java.io.EOFException e){
System.err.println("DbFi>"+e);
***************
*** 318,321 ****
--- 333,337 ----
try{
rFile.seek(data_offset+(rec_size*start));
+
for(i=start;i<end;i++){
sb.setLength(0);
***************
*** 329,333 ****
--- 345,353 ----
st=st+".0";
}
+ try{
column[i-start]=new Double(st);
+ }catch(java.lang.NumberFormatException e){
+ column[i-start]=new Double(0.0);
+ }
}
}
Index: Dbf.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/Dbf.java,v
retrieving revision 1.8.4.1
retrieving revision 1.8.4.2
diff -w -C2 -d -r1.8.4.1 -r1.8.4.2
*** Dbf.java 2002/01/17 15:53:15 1.8.4.1
--- Dbf.java 2002/01/17 16:54:01 1.8.4.2
***************
*** 306,314 ****
--- 306,323 ----
case 'F':
if(fielddef[i].fieldnumdec==0)
+ try{
record.addElement(I.decode(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Integer(0));
+ }
else
+ try{
record.addElement(F.valueOf(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Float(0.0));
+ }
+
break;
default:
***************
*** 367,371 ****
}
catch(java.lang.NumberFormatException nfe){
! throw new DbfFileException(DBC+"Column "+col+" contains an non integer id number "+nfe);
}
catch(java.io.EOFException e){
--- 376,382 ----
}
catch(java.lang.NumberFormatException nfe){
! //throw new DbfFileException(DBC+"Column "+col+" contains an non integer id number "+nfe);
! // be nicer
! column[i-start]=new Integer(0);
}
catch(java.io.EOFException e){
***************
*** 423,427 ****
--- 434,442 ----
st=st+".0";
}
+ try{
column[i-start]=new Float(st);
+ }catch(java.lang.NumberFormatException e){
+ column[i-start]=new Float(0.0);
+ }
}
}
Index: DbfNet.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfNet.java,v
retrieving revision 1.6
retrieving revision 1.6.4.1
diff -w -C2 -d -r1.6 -r1.6.4.1
*** DbfNet.java 2001/03/19 15:50:54 1.6
--- DbfNet.java 2002/01/17 16:54:01 1.6.4.1
***************
*** 211,221 ****
byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer fo storing string's byte data
int j=-1;
for(int i=0;i<DBF_NAMELEN;i++){
byte b = dFile.readByte();
! if(b==0)continue;
j++;
strbuf[j] = b; // <---- read string's byte data
}
! String name = new String(strbuf, 0, j+1);
if(DEBUG)System.out.println("DbN->Loaded as "+name);
fieldname.append(name); // <- append byte array to String Buffer
--- 211,227 ----
byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer fo storing string's byte data
int j=-1;
+ int term =-1;
for(int i=0;i<DBF_NAMELEN;i++){
byte b = dFile.readByte();
! if(b==0){
! if(term== -1 )
! term=j;
! continue;
! }
j++;
strbuf[j] = b; // <---- read string's byte data
}
! if(term==-1) term=j;
! String name = new String(strbuf, 0, term+1);
if(DEBUG)System.out.println("DbN->Loaded as "+name);
fieldname.append(name); // <- append byte array to String Buffer
***************
*** 297,301 ****
if(DEBUG)System.out.println("DbN->GetDbfRec("+row+") "+records[row]);
return record = new StringBuffer(records[row].toString());
-
}
/**
--- 303,306 ----
***************
*** 332,345 ****
--- 337,360 ----
break;
case 'N':
+ try{
record.addElement(I.decode(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Integer(0));
+ }
break;
case 'F':
+ try{
record.addElement(F.valueOf(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Float(0.0));
+ }
+
break;
default:
if(DEBUG)System.out.println("DbN->Oh - don't know how to parse "
+fielddef[i].fieldtype);
+
}
}
***************
*** 386,393 ****
--- 401,412 ----
sb=GetDbfRec(i);
record=sb.toString();
+ try{
column[i-start]=new Integer(record.substring(fielddef[col].fieldstart,
fielddef[col].fieldstart+fielddef[col].fieldlen));
+ }catch(java.lang.NumberFormatException e){
+ column[i-start]=new Integer(0);
}
}
+ }
catch(java.io.EOFException e){
System.err.println("DbN->"+e);
***************
*** 448,452 ****
}
catch(NumberFormatException nfe){
! column[i-start]=null;
}
}
--- 467,471 ----
}
catch(NumberFormatException nfe){
! column[i-start]=new Float(0.0);
}
}
Index: DbfFileWriter.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfFileWriter.java,v
retrieving revision 1.11
retrieving revision 1.11.4.1
diff -w -C2 -d -r1.11 -r1.11.4.1
*** DbfFileWriter.java 2001/07/10 10:54:08 1.11
--- DbfFileWriter.java 2002/01/17 16:54:01 1.11.4.1
***************
*** 81,85 ****
throw(new DbfFileException(DBC+"Must write header before records"));
}
! if(rec.size()!=NoFields) throw new DbfFileException(DBC+"wrong number of records "+
rec.size()+" expected "+NoFields);
String s;
--- 81,85 ----
throw(new DbfFileException(DBC+"Must write header before records"));
}
! if(rec.size()!=NoFields) throw new DbfFileException(DBC+"wrong number of fields "+
rec.size()+" expected "+NoFields);
String s;
|
|
From: Ian T. <ian...@us...> - 2002-01-17 16:52:53
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile
In directory usw-pr-cvs1:/tmp/cvs-serv19116
Modified Files:
DbfFile.java Dbf.java DbfNet.java DbfFileWriter.java
Log Message:
change to the way the readers handle badly formated numeric columns
Index: DbfFile.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfFile.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -w -C2 -d -r1.7 -r1.8
*** DbfFile.java 2002/01/17 15:45:54 1.7
--- DbfFile.java 2002/01/17 16:52:47 1.8
***************
*** 17,21 ****
*/
public class DbfFile implements DbfConsts{
! static final boolean DEBUG=true;
int dbf_id;
int last_update_d,last_update_m,last_update_y;
--- 17,21 ----
*/
public class DbfFile implements DbfConsts{
! static final boolean DEBUG=false;
int dbf_id;
int last_update_d,last_update_m,last_update_y;
***************
*** 223,232 ****
--- 223,240 ----
break;
case 'N':
+ try{
record.addElement(I.decode(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Integer(0));
+ }
break;
case 'F':
+ try{
record.addElement(F.valueOf(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Float(0.0));
+ }
break;
default:
***************
*** 275,280 ****
--- 283,292 ----
sb.append((char)rFile.readUnsignedByte());
record=sb.toString();
+ try{
column[i-start]=new Integer(record.substring(fielddef[col].fieldstart,
fielddef[col].fieldstart+fielddef[col].fieldlen));
+ }catch(java.lang.NumberFormatException e){
+ column[i-start]=new Integer(0);
+ }
}
}
***************
*** 333,337 ****
--- 345,353 ----
st=st+".0";
}
+ try{
column[i-start]=new Double(st);
+ }catch(java.lang.NumberFormatException e){
+ column[i-start]=new Double(0.0);
+ }
}
}
Index: Dbf.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/Dbf.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -w -C2 -d -r1.10 -r1.11
*** Dbf.java 2002/01/17 15:45:54 1.10
--- Dbf.java 2002/01/17 16:52:48 1.11
***************
*** 306,314 ****
--- 306,323 ----
case 'F':
if(fielddef[i].fieldnumdec==0)
+ try{
record.addElement(I.decode(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Integer(0));
+ }
else
+ try{
record.addElement(F.valueOf(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Float(0.0));
+ }
+
break;
default:
***************
*** 367,371 ****
}
catch(java.lang.NumberFormatException nfe){
! throw new DbfFileException(DBC+"Column "+col+" contains an non integer id number "+nfe);
}
catch(java.io.EOFException e){
--- 376,382 ----
}
catch(java.lang.NumberFormatException nfe){
! //throw new DbfFileException(DBC+"Column "+col+" contains an non integer id number "+nfe);
! // be nicer
! column[i-start]=new Integer(0);
}
catch(java.io.EOFException e){
***************
*** 423,427 ****
--- 434,442 ----
st=st+".0";
}
+ try{
column[i-start]=new Float(st);
+ }catch(java.lang.NumberFormatException e){
+ column[i-start]=new Float(0.0);
+ }
}
}
Index: DbfNet.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfNet.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -w -C2 -d -r1.7 -r1.8
*** DbfNet.java 2002/01/10 16:20:20 1.7
--- DbfNet.java 2002/01/17 16:52:48 1.8
***************
*** 303,307 ****
if(DEBUG)System.out.println("DbN->GetDbfRec("+row+") "+records[row]);
return record = new StringBuffer(records[row].toString());
-
}
/**
--- 303,306 ----
***************
*** 338,351 ****
--- 337,360 ----
break;
case 'N':
+ try{
record.addElement(I.decode(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Integer(0));
+ }
break;
case 'F':
+ try{
record.addElement(F.valueOf(t.substring(
fielddef[i].fieldstart,fielddef[i].fieldstart+fielddef[i].fieldlen)));
+ }catch(java.lang.NumberFormatException e){
+ record.addElement(new Float(0.0));
+ }
+
break;
default:
if(DEBUG)System.out.println("DbN->Oh - don't know how to parse "
+fielddef[i].fieldtype);
+
}
}
***************
*** 392,397 ****
--- 401,410 ----
sb=GetDbfRec(i);
record=sb.toString();
+ try{
column[i-start]=new Integer(record.substring(fielddef[col].fieldstart,
fielddef[col].fieldstart+fielddef[col].fieldlen));
+ }catch(java.lang.NumberFormatException e){
+ column[i-start]=new Integer(0);
+ }
}
}
***************
*** 454,458 ****
}
catch(NumberFormatException nfe){
! column[i-start]=null;
}
}
--- 467,471 ----
}
catch(NumberFormatException nfe){
! column[i-start]=new Float(0.0);
}
}
Index: DbfFileWriter.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfFileWriter.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -w -C2 -d -r1.11 -r1.12
*** DbfFileWriter.java 2001/07/10 10:54:08 1.11
--- DbfFileWriter.java 2002/01/17 16:52:48 1.12
***************
*** 81,85 ****
throw(new DbfFileException(DBC+"Must write header before records"));
}
! if(rec.size()!=NoFields) throw new DbfFileException(DBC+"wrong number of records "+
rec.size()+" expected "+NoFields);
String s;
--- 81,85 ----
throw(new DbfFileException(DBC+"Must write header before records"));
}
! if(rec.size()!=NoFields) throw new DbfFileException(DBC+"wrong number of fields "+
rec.size()+" expected "+NoFields);
String s;
|
|
From: Ian T. <ian...@us...> - 2002-01-17 15:53:19
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile
In directory usw-pr-cvs1:/tmp/cvs-serv2520/uk/ac/leeds/ccg/dbffile
Modified Files:
Tag: Release_0_8_x-branch
Dbf.java
Log Message:
fixed bug in mulitbyte reading in getDbfRec
Index: Dbf.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/Dbf.java,v
retrieving revision 1.8
retrieving revision 1.8.4.1
diff -w -C2 -d -r1.8 -r1.8.4.1
*** Dbf.java 2001/06/15 14:37:07 1.8
--- Dbf.java 2002/01/17 15:53:15 1.8.4.1
***************
*** 226,233 ****
StringBuffer record = new StringBuffer(rec_size+numfields);
for(int i=0;i< rec_size;i++){
! // we could do some checking here.
! record.append((char)dFile.readUnsignedByte());
}
return record;
}
--- 226,236 ----
StringBuffer record = new StringBuffer(rec_size+numfields);
+ //Modifed to use Hisaji ONO's approach for reading multi byte character sets
+ byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer fo storing string's byte data
for(int i=0;i<rec_size;i++){
! strbuf[i] = dFile.readByte(); // <---- read string's byte data
}
+ record.append(new String(strbuf)); // <- append byte array to String Buffer
+
return record;
}
***************
*** 258,265 ****
rFile.seek(data_offset+(rec_size*row));
for(int i=0;i< rec_size;i++){
! // we could do some checking here.
! record.append((char)rFile.readUnsignedByte());
}
return record;
}
--- 261,270 ----
rFile.seek(data_offset+(rec_size*row));
+ //Modifed to use Hisaji ONO's approach for reading multi byte character sets
+ byte[] strbuf = new byte[rec_size]; // <---- byte array buffer fo storing string's byte data
for(int i=0;i<rec_size;i++){
! strbuf[i] = dFile.readByte(); // <---- read string's byte data
}
+ record.append(new String(strbuf)); // <- append byte array to String Buffer
return record;
}
|
|
From: Ian T. <ian...@us...> - 2002-01-17 15:45:58
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile
In directory usw-pr-cvs1:/tmp/cvs-serv32439/uk/ac/leeds/ccg/dbffile
Modified Files:
DbfFile.java Dbf.java
Log Message:
fixed bug in multibyte char reading in getDbfRec
Index: DbfFile.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfFile.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -w -C2 -d -r1.6 -r1.7
*** DbfFile.java 2002/01/13 15:21:07 1.6
--- DbfFile.java 2002/01/17 15:45:54 1.7
***************
*** 182,186 ****
rFile.seek(data_offset+(rec_size*row));
//Multi byte character modification thanks to Hisaji ONO
! byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer fo storing string's byte data
for(int i=0;i<rec_size;i++){
//************************//
--- 182,186 ----
rFile.seek(data_offset+(rec_size*row));
//Multi byte character modification thanks to Hisaji ONO
! byte[] strbuf = new byte[rec_size]; // <---- byte array buffer fo storing string's byte data
for(int i=0;i<rec_size;i++){
//************************//
Index: Dbf.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/Dbf.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -w -C2 -d -r1.9 -r1.10
*** Dbf.java 2002/01/13 15:21:07 1.9
--- Dbf.java 2002/01/17 15:45:54 1.10
***************
*** 262,266 ****
rFile.seek(data_offset+(rec_size*row));
//Modifed to use Hisaji ONO's approach for reading multi byte character sets
! byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer fo storing string's byte data
for(int i=0;i<rec_size;i++){
strbuf[i] = dFile.readByte(); // <---- read string's byte data
--- 262,266 ----
rFile.seek(data_offset+(rec_size*row));
//Modifed to use Hisaji ONO's approach for reading multi byte character sets
! byte[] strbuf = new byte[rec_size]; // <---- byte array buffer fo storing string's byte data
for(int i=0;i<rec_size;i++){
strbuf[i] = dFile.readByte(); // <---- read string's byte data
|
|
From: Ian T. <ian...@us...> - 2002-01-15 17:10:19
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/raster
In directory usw-pr-cvs1:/tmp/cvs-serv1127/uk/ac/leeds/ccg/raster
Modified Files:
Tag: Release_0_8_x-branch
ImageLayer.java
Log Message:
fixed bug (503887) where Image was deleted before it became loaded
Index: ImageLayer.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/raster/ImageLayer.java,v
retrieving revision 1.34
retrieving revision 1.34.4.1
diff -w -C2 -d -r1.34 -r1.34.4.1
*** ImageLayer.java 2001/12/20 15:27:57 1.34
--- ImageLayer.java 2002/01/15 17:10:15 1.34.4.1
***************
*** 58,63 ****
bbox = bounds;
this.image = image;
- tracker.addImage(this.image,++myID);
- this.setStatus(Layer.LOADING);
thread = new Thread(this);
thread.setPriority(Thread.MIN_PRIORITY);
--- 58,61 ----
***************
*** 289,298 ****
// use default java tools otherwise use Jimi class
String type="";
- // If a previous image was being tracked, then remove it.
- if(tracker!=null){
- if(DEBUG)System.out.println("Clearing old image");
- tracker.removeImage(this.image);
- this.image=null;
- }
URLConnection con;
Toolkit tk = Toolkit.getDefaultToolkit();
--- 287,290 ----
***************
*** 419,422 ****
--- 411,417 ----
*
* $Log$
+ * Revision 1.34.4.1 2002/01/15 17:10:15 ianturton
+ * fixed bug (503887) where Image was deleted before it became loaded
+ *
* Revision 1.34 2001/12/20 15:27:57 ianturton
* various fixes and small mods to make WMSExample actually run. Can now
|
|
From: James M. <jma...@us...> - 2002-01-13 15:21:10
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile
In directory usw-pr-cvs1:/tmp/cvs-serv14246/uk/ac/leeds/ccg/dbffile
Modified Files:
Dbf.java DbfFieldDef.java DbfFile.java
Log Message:
Added Hisaji ONO's 2byte character modification across more methods.
(Though any bugs will be in my implementation not his)
Everything appears to operate as before, but testing with non-ascii .dbf files is needed to be sure.
Index: Dbf.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/Dbf.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -w -C2 -d -r1.8 -r1.9
*** Dbf.java 2001/06/15 14:37:07 1.8
--- Dbf.java 2002/01/13 15:21:07 1.9
***************
*** 226,233 ****
StringBuffer record = new StringBuffer(rec_size+numfields);
for(int i=0;i< rec_size;i++){
! // we could do some checking here.
! record.append((char)dFile.readUnsignedByte());
}
return record;
}
--- 226,236 ----
StringBuffer record = new StringBuffer(rec_size+numfields);
+ //Modifed to use Hisaji ONO's approach for reading multi byte character sets
+ byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer fo storing string's byte data
for(int i=0;i<rec_size;i++){
! strbuf[i] = dFile.readByte(); // <---- read string's byte data
}
+ record.append(new String(strbuf)); // <- append byte array to String Buffer
+
return record;
}
***************
*** 258,265 ****
rFile.seek(data_offset+(rec_size*row));
for(int i=0;i< rec_size;i++){
! // we could do some checking here.
! record.append((char)rFile.readUnsignedByte());
}
return record;
}
--- 261,270 ----
rFile.seek(data_offset+(rec_size*row));
+ //Modifed to use Hisaji ONO's approach for reading multi byte character sets
+ byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer fo storing string's byte data
for(int i=0;i<rec_size;i++){
! strbuf[i] = dFile.readByte(); // <---- read string's byte data
}
+ record.append(new String(strbuf)); // <- append byte array to String Buffer
return record;
}
Index: DbfFieldDef.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfFieldDef.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -w -C2 -d -r1.6 -r1.7
*** DbfFieldDef.java 2002/01/10 16:20:20 1.6
--- DbfFieldDef.java 2002/01/13 15:21:07 1.7
***************
*** 28,32 ****
public void setup(int pos, LEDataInputStream dFile) throws IOException {
! //two byte character modification
byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer for storing string's byte data
int j=-1;
--- 28,32 ----
public void setup(int pos, LEDataInputStream dFile) throws IOException {
! //two byte character modification thanks to Hisaji ONO
byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer for storing string's byte data
int j=-1;
Index: DbfFile.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfFile.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -w -C2 -d -r1.5 -r1.6
*** DbfFile.java 2001/03/19 15:50:54 1.5
--- DbfFile.java 2002/01/13 15:21:07 1.6
***************
*** 181,188 ****
rFile.seek(data_offset+(rec_size*row));
for(int i=0;i< rec_size;i++){
! // we could do some checking here.
! record.append((char)rFile.readUnsignedByte());
}
return record;
}
--- 181,191 ----
rFile.seek(data_offset+(rec_size*row));
+ //Multi byte character modification thanks to Hisaji ONO
+ byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer fo storing string's byte data
for(int i=0;i<rec_size;i++){
! //************************//
! strbuf[i] = dFile.readByte(); // <---- read string's byte data
}
+ record.append(new String(strbuf)); // <- append byte array to String Buffer
return record;
}
***************
*** 318,321 ****
--- 321,325 ----
try{
rFile.seek(data_offset+(rec_size*start));
+
for(i=start;i<end;i++){
sb.setLength(0);
|
|
From: James M. <jma...@us...> - 2002-01-13 14:30:03
|
Update of /cvsroot/geotools/geotools/src
In directory usw-pr-cvs1:/tmp/cvs-serv3030
Modified Files:
build.xml
Log Message:
added classpath to javadoc, this removes a lot of the javadoc errors e.g. relating to not beeing able to find the collections package
Index: build.xml
===================================================================
RCS file: /cvsroot/geotools/geotools/src/build.xml,v
retrieving revision 1.20
retrieving revision 1.21
diff -w -C2 -d -r1.20 -r1.21
*** build.xml 2001/11/18 15:54:06 1.20
--- build.xml 2002/01/13 14:29:58 1.21
***************
*** 1,3 ****
! <project name="GeoToolsProject" default="dist" basedir=".">
<!-- set global properties for this build -->
--- 1,4 ----
! <?xml version="1.0" encoding="UTF-8"?>
! <project basedir="." default="dist" name="GeoToolsProject">
<!-- set global properties for this build -->
***************
*** 18,22 ****
</target>
! <target name="compile" depends="prepare">
<!-- Compile the java code from ${src} into ${build} -->
<echo message="build.xml compile code in ${src} to ${build} with jars from ${jars}"/>
--- 19,23 ----
</target>
! <target depends="prepare" name="compile">
<!-- Compile the java code from ${src} into ${build} -->
<echo message="build.xml compile code in ${src} to ${build} with jars from ${jars}"/>
***************
*** 38,42 ****
</javac>
</target>
! <target name="server" depends="prepare">
<!-- Compile the java code from ${src} into ${build} -->
<javac destdir="${build}">
--- 39,43 ----
</javac>
</target>
! <target depends="prepare" name="server">
<!-- Compile the java code from ${src} into ${build} -->
<javac destdir="${build}">
***************
*** 56,60 ****
</javac>
</target>
! <target name="utils" depends="prepare,jar">
<ant antfile="${utils}/build.xml" target="all">
<property name="src" value="${utils}"/>
--- 57,61 ----
</javac>
</target>
! <target depends="prepare,jar" name="utils">
<ant antfile="${utils}/build.xml" target="all">
<property name="src" value="${utils}"/>
***************
*** 62,73 ****
</ant>
</target>
! <target name="utils-zip" depends="prepare,jar">
<ant antfile="${utils}/build.xml" target="zip">
<property name="src" value="${utils}"/>
</ant>
</target>
! <target name="strict" depends="clean,prepare">
<!-- a 1.1 Compile the java code from ${src} into ${build} -->
! <javac target="1.1" bootclasspath="${1.1classes}" srcdir="${src}" destdir="${build}" >
<classpath>
<pathelement location="${jars}/collections.jar"/>
--- 63,74 ----
</ant>
</target>
! <target depends="prepare,jar" name="utils-zip">
<ant antfile="${utils}/build.xml" target="zip">
<property name="src" value="${utils}"/>
</ant>
</target>
! <target depends="clean,prepare" name="strict">
<!-- a 1.1 Compile the java code from ${src} into ${build} -->
! <javac bootclasspath="${1.1classes}" destdir="${build}" srcdir="${src}" target="1.1">
<classpath>
<pathelement location="${jars}/collections.jar"/>
***************
*** 78,99 ****
</target>
! <target name="demos" depends="jar">
<ant antfile="${demos}/build.xml"/>
</target>
! <target name="demos-zip" depends="jar">
<ant antfile="${demos}/build.xml" target="zip"/>
</target>
<target name="docs" >
<mkdir dir="${dist}/docs" />
! <javadoc
! packagenames="uk.*,cmp.*,com.*"
! sourcepath="${src}"
! destdir="${dist}/docs"
! windowtitle="GeoTools API"
! bottom="Copyright © 2001 Center for Computational Geography
! under the Gnu Public Licence." />
</target>
! <target name="dist" depends="jar,docs">
<!-- Create the ${dist}/lib directory -->
<mkdir dir="${dist}/lib" />
--- 79,106 ----
</target>
! <target depends="jar" name="demos">
<ant antfile="${demos}/build.xml"/>
</target>
! <target depends="jar" name="demos-zip">
<ant antfile="${demos}/build.xml" target="zip"/>
</target>
<target name="docs">
<mkdir dir="${dist}/docs"/>
! <javadoc author="true" bottom="Copyright © 2002 Center for Computational Geography under the Gnu Lesser General Public Licence." destdir="${dist}/docs" packagenames="uk.*,cmp.*" sourcepath="${src}" windowtitle="GeoTools API">
! <classpath>
! <pathelement location="${jars}/collections.jar"/>
! <pathelement location="${jars}/xerces.jar"/>
! <pathelement location="${jars}/support.jar"/>
! <pathelement location="${jars}/JimiCore.jar"/>
! <pathelement location="${jars}/servlet.jar"/>
! <pathelement location="${jars}/postgis.jar"/>
! <pathelement location="${jars}/postgresql.jar"/>
! <pathelement location="${jars}/dxflib.jar"/>
! <pathelement location="${jars}/gml4j.jar"/>
! </classpath>
! </javadoc>
</target>
! <target depends="jar,docs" name="dist">
<!-- Create the ${dist}/lib directory -->
<mkdir dir="${dist}/lib"/>
***************
*** 101,121 ****
</target>
! <target name="jar" depends="compile">
<mkdir dir="${dist}/lib" />
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
! <jar jarfile="${dist}/lib/GeoTools-${DSTAMP}.jar" basedir="${build}" includes="uk/**" />
! <copy file="${dist}/lib/GeoTools-${DSTAMP}.jar"
! tofile="${dist}/lib/geotools.jar"/>
</target>
! <target name="core" depends="compile">
<mkdir dir="${dist}/lib" />
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
! <jar jarfile="${dist}/lib/geotools-core.jar" basedir="${build}" includes="uk/ac/leeds/ccg/geotools/**" />
</target>
! <target name="package" depends="compile">
<mkdir dir="${dist}/lib" />
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
! <jar jarfile="${dist}/lib/geotools-${pack}.jar" basedir="${build}" includes="uk/ac/leeds/ccg/${pack}/**" />
</target>
<target name="geotools">
--- 108,127 ----
</target>
! <target depends="compile" name="jar">
<mkdir dir="${dist}/lib"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
! <jar basedir="${build}" includes="uk/**" jarfile="${dist}/lib/GeoTools-${DSTAMP}.jar"/>
! <copy file="${dist}/lib/GeoTools-${DSTAMP}.jar" tofile="${dist}/lib/geotools.jar"/>
</target>
! <target depends="compile" name="core">
<mkdir dir="${dist}/lib"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
! <jar basedir="${build}" includes="uk/ac/leeds/ccg/geotools/**" jarfile="${dist}/lib/geotools-core.jar"/>
</target>
! <target depends="compile" name="package">
<mkdir dir="${dist}/lib"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
! <jar basedir="${build}" includes="uk/ac/leeds/ccg/${pack}/**" jarfile="${dist}/lib/geotools-${pack}.jar"/>
</target>
<target name="geotools">
***************
*** 190,197 ****
</ant>
</target>
! <target name="src" depends="prepare">
! <zip zipfile="${dist}/lib/GeoToolsSrc-${DSTAMP}.zip"
! basedir="${src}/uk"
! />
</target>
--- 196,201 ----
</ant>
</target>
! <target depends="prepare" name="src">
! <zip basedir="${src}/uk" zipfile="${dist}/lib/GeoToolsSrc-${DSTAMP}.zip"/>
</target>
|
|
From: James M. <jma...@us...> - 2002-01-10 23:45:24
|
Update of /cvsroot/geotools/geotools/src
In directory usw-pr-cvs1:/tmp/cvs-serv10003
Modified Files:
Tag: Release_0_8_x-branch
readme.html
Log Message:
Added list of changes and corrected some errors
Index: readme.html
===================================================================
RCS file: /cvsroot/geotools/geotools/src/readme.html,v
retrieving revision 1.3.4.2
retrieving revision 1.3.4.3
diff -w -C2 -d -r1.3.4.2 -r1.3.4.3
*** readme.html 2001/12/30 20:58:52 1.3.4.2
--- readme.html 2002/01/10 23:45:21 1.3.4.3
***************
*** 17,30 ****
be used to develop client-server based solutions, applications and command line utilities. GeoTools is supported
by a wide and diverse developer and user community and it is continuing to grow in new directions.</P>
!
! <P></P>
<H2>License</H2>
! <P>The GeoTools library is covered by the GNU Lesser General Public License (LGPL). In essence, this declares
! that GeoTools is an open source library which can freely be used and modified in conjunction with any other code
! (open or proprietary), provided the source for all modifications is made freely available. However, for the full
! legal position and implications of the license, please refer to the full text which can be found in the <A HREF="license.txt">License</A>
file.</P>
!
! <P></P>
<H2>What is a release candidate?</H2>
<P>Prior to the final release of a new version, release candidates are made which are believed to be complete by
--- 17,28 ----
be used to develop client-server based solutions, applications and command line utilities. GeoTools is supported
by a wide and diverse developer and user community and it is continuing to grow in new directions.</P>
! <P>
<H2>License</H2>
! <P>The GeoTools library is covered by the GNU Lesser General Public License (LGPL). In essence, this declares that
! GeoTools is an open source library which can freely be used and modified in conjunction with any other code (open
! or proprietary), provided the source for all modifications is made freely available. However, for the full legal
! position and implications of the license, please refer to the full text which can be found in the <A HREF="license.txt">License</A>
file.</P>
! <P>
<H2>What is a release candidate?</H2>
<P>Prior to the final release of a new version, release candidates are made which are believed to be complete by
***************
*** 35,43 ****
folder. Please report any problems, crashes, bugs, etc. using the <A HREF="http://sourceforge.net/tracker/?func=add&group_id=4091&atid=104091">'Submit
a bug'</A> link which can be found on the <A HREF="http://geotools.org">geotools.org </A>homepage.</P>
-
<P>
<H2>Getting started</H2>
<P>Three guides to getting started with GeoTools can be found in the Getting Started folder.</P>
-
<P>
<TABLE BORDER="1" WIDTH="100%">
--- 33,39 ----
***************
*** 48,62 ****
</TR>
<TR>
! <TD WIDTH="33%">As an end user</TD>
! <TD WIDTH="33%">Para usuarios finales</TD>
<TD WIDTH="34%"> </TD>
</TR>
<TR>
! <TD WIDTH="33%">As a solution builder</TD>
! <TD WIDTH="33%"> </TD>
<TD WIDTH="34%"> </TD>
</TR>
<TR>
! <TD WIDTH="33%">As a developer</TD>
<TD WIDTH="33%"> </TD>
<TD WIDTH="34%"> </TD>
--- 44,58 ----
</TR>
<TR>
! <TD WIDTH="33%">Getting started as an end user</TD>
! <TD WIDTH="33%">Guía de introducción para usuarios finales</TD>
<TD WIDTH="34%"> </TD>
</TR>
<TR>
! <TD WIDTH="33%">Getting started as a solution builder</TD>
! <TD WIDTH="33%">Guía de introducción para creadores de soluciones </TD>
<TD WIDTH="34%"> </TD>
</TR>
<TR>
! <TD WIDTH="33%">Getting started as a developer</TD>
<TD WIDTH="33%"> </TD>
<TD WIDTH="34%"> </TD>
***************
*** 64,72 ****
</TABLE>
</P>
-
<P>The demonstrations package included in this release can be found in the Demonstrations folder. Please refer
to the <A HREF="demonstrations/readme.html">readme</A> file in that directory for more details and links to the
individual examples.
! <H2>What's not in this release?</H2>
<P>The creation of this (0.8.0) release of GeoTools involved more the removal of code than the addition of anything
new. GeoTools has undergone continuous active development since its last official release over a year ago: much
--- 60,67 ----
</TABLE>
</P>
<P>The demonstrations package included in this release can be found in the Demonstrations folder. Please refer
to the <A HREF="demonstrations/readme.html">readme</A> file in that directory for more details and links to the
individual examples.
! <H2>What's <B>not</B> in this release?</H2>
<P>The creation of this (0.8.0) release of GeoTools involved more the removal of code than the addition of anything
new. GeoTools has undergone continuous active development since its last official release over a year ago: much
***************
*** 74,93 ****
all of the most important code, whilst excluding the newer, experimental code. Therefore, this release does not
include any of the following features:</P>
-
<P><BR>
Simple Feature SQL (SFSQL): Database communication standard, set out by Open GIS Consortium (OGC).</P>
-
<P>Geographical Markup Language (GML): The XML-based standard from the OGC for the exchange of geographic data.</P>
-
<P>MapInfo Interchange Format (MIF): File format used by MapInfo.</P>
-
<P>Web Map Server support (WMS): Easy connection to OGC-compliant web map servers.</P>
-
<P>Threaded loading: Improved multi-threaded loading system.</P>
-
<P>Data entry: Tools for creating and editing maps.</P>
-
<P>Demonstrations: Demonstrations which relied on any of the above features have been removed.</P>
-
<P><BR>
If you would like to help develop any of the above features, or are not afraid to work with experimental code,
--- 69,80 ----
***************
*** 95,100 ****
We hope to have many, if not all, of the above features in a suitable state to include in the 0.9.x release of
GeoTools.</P>
! <H2>Credits</H2>
! <P>GeoTools would not have been possible without the combined effort of a dynamic community
</BODY>
--- 82,129 ----
We hope to have many, if not all, of the above features in a suitable state to include in the 0.9.x release of
GeoTools.</P>
!
! <P></P>
! <H2>Changes</H2>
! <P>There have clearly been a lot of changes since the last release of GeoTools (0.7.9dev1) in January of 2001.
! This is an overview of the most important ones. A full list of all changes can be seen by going to the automatic
! <A HREF="http://www.geotools.org/cvs.php">change log</A>.<BR>
! <BR>
! ScaleBar widget added - Ian Turton<BR>
! MarkerLayers improved, new marker types added<BR>
! ImageMarker added - Pet...@co... <BR>
! Many enhancements to geometry operations in Polygon, Line, Point layers - Mathieu van Loon<BR>
! Ability to create point maps from columns in dbf file - Mathieu van Loon<BR>
! ShapefileWriter now creates dbf file - Ian Turton<BR>
! Classification system revamped - James Macgill, Andy Turner<BR>
! Now using ant as the build system - James Macgill, Ian Turton<BR>
! Theme organisation now handled for views by external ThemeStack object - James Macgill<BR>
! Memory usage of key geometry objects reduced - Michael Becke <BR>
! Added support for PNG images - Ian Turton<BR>
! New one click/drag tools added - Cameron Shorter<BR>
! Implementation of Jenks' classification method - Hisaji ONO<BR>
! Support for multi-line tooltips - Kjetil Thuen<BR>
! Added VersionInfo dialog, accessible by running java -jar geotool.jar - James Macgill<BR>
! Licence changed to LGPL</P>
!
! <P><BR>
! Bugfixes - important bug fixes. For full list see <A HREF="http://sourceforge.net/tracker/index.php?group_id=4091&atid=104091">bug
! manager</A></P>
!
! <P>ThemePanel resizes properly - John Fereira<BR>
! Fixed problem with Highlights not clearing when the mouse exited a viewer. <BR>
! Multiple fixes to shading system and dialogs - Liu Zehua<BR>
! #132380 - A click after a zoom and reset no longer jumps back to previous zoom<BR>
! #412501 - Transparent gifs overpaint other images<BR>
! #426590 - DBF file should not be required<BR>
! #449511 - Selection Manager not working with Point Shapefiles<BR>
! </P>
!
! <P><BR>
! It should be remembered that a lot of changes related to features in development, but not included in this release,
! are not given, so apologies for the lack of credit to all of those who have been putting hard work into those features,
! epsecially those related to OGC compliance.</P>
!
! <P> <BR>
!
</BODY>
|
|
From: James M. <jma...@us...> - 2002-01-10 22:47:35
|
Update of /cvsroot/geotools/geotools/src
In directory usw-pr-cvs1:/tmp/cvs-serv21533
Removed Files:
Tag: Release_0_8_x-branch
README-JARS
Log Message:
This document is of little relevence in this release
--- README-JARS DELETED ---
|
|
From: James M. <jma...@us...> - 2002-01-10 22:37:26
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/misc
In directory usw-pr-cvs1:/tmp/cvs-serv17951/uk/ac/leeds/ccg/geotools/misc
Removed Files:
Tag: Release_0_8_x-branch
DotFill.java HatchFill.java
Log Message:
Not yet used by any part of geotools, so removed from this release
--- DotFill.java DELETED ---
--- HatchFill.java DELETED ---
|
|
From: Ian T. <ian...@us...> - 2002-01-10 16:20:23
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile
In directory usw-pr-cvs1:/tmp/cvs-serv3657/uk/ac/leeds/ccg/dbffile
Modified Files:
DbfNet.java DbfFieldDef.java
Log Message:
fixed broken field names with junk after null
Index: DbfNet.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfNet.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -w -C2 -d -r1.6 -r1.7
*** DbfNet.java 2001/03/19 15:50:54 1.6
--- DbfNet.java 2002/01/10 16:20:20 1.7
***************
*** 211,221 ****
byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer fo storing string's byte data
int j=-1;
for(int i=0;i<DBF_NAMELEN;i++){
byte b = dFile.readByte();
! if(b==0)continue;
j++;
strbuf[j] = b; // <---- read string's byte data
}
! String name = new String(strbuf, 0, j+1);
if(DEBUG)System.out.println("DbN->Loaded as "+name);
fieldname.append(name); // <- append byte array to String Buffer
--- 211,227 ----
byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer fo storing string's byte data
int j=-1;
+ int term =-1;
for(int i=0;i<DBF_NAMELEN;i++){
byte b = dFile.readByte();
! if(b==0){
! if(term== -1 )
! term=j;
! continue;
! }
j++;
strbuf[j] = b; // <---- read string's byte data
}
! if(term==-1) term=j;
! String name = new String(strbuf, 0, term+1);
if(DEBUG)System.out.println("DbN->Loaded as "+name);
fieldname.append(name); // <- append byte array to String Buffer
Index: DbfFieldDef.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/dbffile/DbfFieldDef.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -w -C2 -d -r1.5 -r1.6
*** DbfFieldDef.java 2001/03/30 05:35:45 1.5
--- DbfFieldDef.java 2002/01/10 16:20:20 1.6
***************
*** 30,37 ****
//two byte character modification
byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer for storing string's byte data
for(int i=0;i<DBF_NAMELEN;i++){
! strbuf[i] = dFile.readByte(); // <---- read string's byte data
}
! fieldname.append(new String(strbuf).trim()); // <- append byte array to String Buffer
if(DEBUG)System.out.println("Fieldname "+fieldname);
--- 30,49 ----
//two byte character modification
byte[] strbuf = new byte[DBF_NAMELEN]; // <---- byte array buffer for storing string's byte data
+ int j=-1;
+ int term =-1;
for(int i=0;i<DBF_NAMELEN;i++){
! byte b = dFile.readByte();
! if(b==0){
! if(term== -1 )
! term=j;
! continue;
}
! j++;
! strbuf[j] = b; // <---- read string's byte data
! }
! if(term==-1) term=j;
! String name = new String(strbuf, 0, term+1);
!
! fieldname.append(name.trim()); // <- append byte array to String Buffer
if(DEBUG)System.out.println("Fieldname "+fieldname);
|
|
From: James M. <jma...@us...> - 2002-01-06 21:22:09
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools
In directory usw-pr-cvs1:/tmp/cvs-serv17654/uk/ac/leeds/ccg/geotools
Modified Files:
CircleLayer.java
Log Message:
Updated and fixed JavaDoc comments.
Index: CircleLayer.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/CircleLayer.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -w -C2 -d -r1.1.1.1 -r1.2
*** CircleLayer.java 2000/04/14 09:18:47 1.1.1.1
--- CircleLayer.java 2002/01/06 21:22:04 1.2
***************
*** 1,2 ****
--- 1,9 ----
+ /*
+ * GeoTools java GIS tookit (c) The Centre for Computational Geography 2002
+ *
+ * This library is free software; you can redistribute it and/or modify it under the terms
+ * of the GNU Lesser General Public License as published by the Free Software Foundation version 2.1
+ */
+
package uk.ac.leeds.ccg.geotools;
***************
*** 5,13 ****
/**
! * A layer for containing a feature set of GeoCircles
! * Circle Layer now extends ShapeLayer which now does a lot of the common work for layers
*
! * @version 0.7.0, 9 Dec 1999
* @author James Macgill
*/
public class CircleLayer extends ShapeLayer implements Layer, LockableSize {
--- 12,26 ----
/**
! * A layer for containing a feature set of GeoCircles.
! * Circle Layer now extends ShapeLayer which now does a lot of the common work for layers.
*
! * $Log$
! * Revision 1.2 2002/01/06 21:22:04 jmacgill
! * Updated and fixed JavaDoc comments.
! *
! *
! * @version $Revision$ $Date$
* @author James Macgill
+ * @since before 0.8.0
*/
public class CircleLayer extends ShapeLayer implements Layer, LockableSize {
***************
*** 16,20 ****
/**
! * Switches locked radius on and off
*/
protected boolean lockRadiusOn = false;
--- 29,33 ----
/**
! * Switches locked radius on and off.
*/
protected boolean lockRadiusOn = false;
***************
*** 22,26 ****
/**
! * Locked radius size
*/
public int lockedRadius = 10;
--- 35,39 ----
/**
! * Locked radius size.
*/
public int lockedRadius = 10;
***************
*** 29,34 ****
/**
! * Adds the specified GeoPolygon to the GeoMap
! * @param polygon The GeoCircle to be added
*/
public void addGeoCircle(GeoCircle circle) {
--- 42,48 ----
/**
! * Adds the specified GeoCircle to the GeoMap.
! *
! * @param circle the GeoCircle to be added.
*/
public void addGeoCircle(GeoCircle circle) {
***************
*** 40,44 ****
/**
! * Sets the lockeRadius switch
*/
public void setIsLockRadiusOn(boolean flag){
--- 54,60 ----
/**
! * Sets the lockRadius switch.
! *
! * @param flag true if lockRadius should be on.
*/
public void setIsLockRadiusOn(boolean flag){
***************
*** 47,59 ****
/**
! * Sets radus in pixels to use if lock radius is enabled
*/
public void setLockedRadius(int size){
lockedRadius = size;
}
/**
! * Paints a scaled version of the layer to the given graphics contex.
! * <br>Generaly only called by a theme that contains this layer.
! * @param gg A GeoGraphics containing all of the info needed to paint this layer to screen
*/
public void paintScaled(GeoGraphics gg){
--- 63,79 ----
/**
! * Sets radius in pixels, to use if lock radius is enabled.
! *
! * @param size the size of the radius in pixels.
*/
public void setLockedRadius(int size){
lockedRadius = size;
}
+
/**
! * Paints a scaled version of the layer to the given graphics context.
! * <br>Generally only called by a theme that contains this layer.
! *
! * @param gg a GeoGraphics containing all of the info needed to paint this layer to screen.
*/
public void paintScaled(GeoGraphics gg){
***************
*** 111,116 ****
* <b>Note</b> This method will return the first feature found to contain the point only,
* even if multiple, overlapping features, contain the same point.
! * @param point The GeoPoint to test each feature against.
! * @return int The ID of the first feature to contain this point, -1 if no feature was found
*/
public int getID(GeoPoint p,Scaler s){
--- 131,138 ----
* <b>Note</b> This method will return the first feature found to contain the point only,
* even if multiple, overlapping features, contain the same point.
! *
! * @param p the GeoPoint to test each feature against.
! * @param s the current scale, used to calculate distance in pixels from point.
! * @return the ID of the first feature to contain this point, -1 if no feature was found.
*/
public int getID(GeoPoint p,Scaler s){
***************
*** 130,134 ****
/**
! * Scales and plots a highlighted version of one of the polygons
*/
public void paintHighlight(Graphics g,Scaler scale,int id,ShadeStyle style){
--- 152,167 ----
/**
! * Highlights the specified feature.
! * A simple version of paintScaled, this is used to paint a single feature
! * in some way that makes it stand out from the other features.<br>
! * To date, this has been done by using a bright red colour. A more user-definable
! * system may be implemented in later versions.<br>
! * Again, the only thing that should call this is a Theme.<br>
! *
! * @param g a Graphics object to paint the highlighted feature to.
! * @param scale a scaler that can be used to scale the feature.
! * @param id an int for the ID of the feature to be highlighted.
! * @param style a style with hints on how to display the highlight.
! * @see uk.ac.leeds.ccg.geotools.Theme
*/
public void paintHighlight(Graphics g,Scaler scale,int id,ShadeStyle style){
***************
*** 156,161 ****
/**
! * Returns the total number of circles held by the GeoMap
! * @deprecated use countFeatures from super class instead
*/
public int countCircles() {
--- 189,196 ----
/**
! * Returns the total number of circles held by the GeoMap.
! *
! * @return the total number of circles held by the GeoMap.
! * @deprecated use {@link uk.ac.leeds.ccg.geotools.ShapeLayer#countFeatures} from {@link uk.ac.leeds.ccg.geotools.ShapeLayer} instead.
*/
public int countCircles() {
***************
*** 166,171 ****
/**
! * Returns all of the GeoCircles in this layer in a vector
! * @deprecated use the getFeatures method from ShapeLayer instead
*/
public Vector getGeoCircles(){
--- 201,208 ----
/**
! * Returns all of the GeoCircles in this layer, in a vector.
! *
! * @return all of the GeoCircles in this layer.
! * @deprecated use {@link ShapeLayer#getGeoShapes} from {@link ShapeLayer} instead.
*/
public Vector getGeoCircles(){
|
|
From: James M. <jma...@us...> - 2002-01-06 20:35:35
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools
In directory usw-pr-cvs1:/tmp/cvs-serv10600/uk/ac/leeds/ccg/geotools
Modified Files:
CSVReader.java CenterOnPointTool.java
Log Message:
Fixed and updated JavaDoc comments.
Index: CSVReader.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/CSVReader.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -w -C2 -d -r1.7 -r1.8
*** CSVReader.java 2002/01/06 18:29:00 1.7
--- CSVReader.java 2002/01/06 20:35:32 1.8
***************
*** 15,26 ****
* This class provides methods for reading data from CVS files and produces GeoData objects from their contents.
*
* @author James Macgill
* @since 0.7.9
* @version $Revision$ $Date$
- *
- * $Log$
- * Revision 1.7 2002/01/06 18:29:00 jmacgill
- * Updated and fixed JavaDoc comments
- *
*/
--- 15,26 ----
* This class provides methods for reading data from CVS files and produces GeoData objects from their contents.
*
+ * $Log$
+ * Revision 1.8 2002/01/06 20:35:32 jmacgill
+ * Fixed and updated JavaDoc comments.
+ *
+ *
* @author James Macgill
* @since 0.7.9
* @version $Revision$ $Date$
*/
Index: CenterOnPointTool.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/CenterOnPointTool.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -w -C2 -d -r1.3 -r1.4
*** CenterOnPointTool.java 2002/01/06 18:34:14 1.3
--- CenterOnPointTool.java 2002/01/06 20:35:32 1.4
***************
*** 13,24 ****
* OneClickZoomInTool is a simple alternative to the zoom tool that zooms in on a point.
*
* @author James Macgill
* @version $Revision$ $Date$
* @since 0.7.9
- *
- * $Log$
- * Revision 1.3 2002/01/06 18:34:14 jmacgill
- * Updated and fixed JavaDoc comments
- *
*/
public class CenterOnPointTool extends SimpleTool{
--- 13,24 ----
* OneClickZoomInTool is a simple alternative to the zoom tool that zooms in on a point.
*
+ * $Log$
+ * Revision 1.4 2002/01/06 20:35:32 jmacgill
+ * Fixed and updated JavaDoc comments.
+ *
+ *
* @author James Macgill
* @version $Revision$ $Date$
* @since 0.7.9
*/
public class CenterOnPointTool extends SimpleTool{
|
|
From: James M. <jma...@us...> - 2002-01-06 18:34:17
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools
In directory usw-pr-cvs1:/tmp/cvs-serv20815/uk/ac/leeds/ccg/geotools
Modified Files:
CenterOnPointTool.java
Log Message:
Updated and fixed JavaDoc comments
Index: CenterOnPointTool.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/CenterOnPointTool.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -w -C2 -d -r1.2 -r1.3
*** CenterOnPointTool.java 2000/11/23 16:37:40 1.2
--- CenterOnPointTool.java 2002/01/06 18:34:14 1.3
***************
*** 1,11 ****
package uk.ac.leeds.ccg.geotools;
import java.awt.Cursor;
/**
! * Provides the zoom funtionality for viewers.
* OneClickZoomInTool is a simple alternative to the zoom tool that zooms in on a point.
*
*
! * @since 0.7.9.0 22 November 2000
! * @author James Macgill JM
*/
public class CenterOnPointTool extends SimpleTool{
--- 1,24 ----
+ /*
+ * GeoTools java GIS tookit (c) The Centre for Computational Geography 2002
+ *
+ * This library is free software; you can redistribute it and/or modify it under the terms
+ * of the GNU Lesser General Public License as published by the Free Software Foundation version 2.1
+ */
+
package uk.ac.leeds.ccg.geotools;
import java.awt.Cursor;
+
/**
! * Provides the zoom functionality for viewers.
* OneClickZoomInTool is a simple alternative to the zoom tool that zooms in on a point.
*
+ * @author James Macgill
+ * @version $Revision$ $Date$
+ * @since 0.7.9
*
! * $Log$
! * Revision 1.3 2002/01/06 18:34:14 jmacgill
! * Updated and fixed JavaDoc comments
! *
*/
public class CenterOnPointTool extends SimpleTool{
***************
*** 15,20 ****
* Returns the default cursor type for this tool.
* In this instance, a HAND_CURSOR.
! * @author James Macgill
! * @since 0.7.9.0 22 November 2000
* @return Cursor the default cursor for this tool
*/
--- 28,32 ----
* Returns the default cursor type for this tool.
* In this instance, a HAND_CURSOR.
! *
* @return Cursor the default cursor for this tool
*/
***************
*** 26,34 ****
/**
! * called when a mouse button has been clciked.
* The view is centered on the point of the click.
- *
- * @author James Macgill
- * @since 0.7.9.0 22 November 2000
*/
public void click(){
--- 38,43 ----
/**
! * Called when a mouse button has been clicked.
* The view is centered on the point of the click.
*/
public void click(){
***************
*** 38,41 ****
--- 47,54 ----
super.click();//clean up
}
+ /** Return one of the above constants to specify which rubberband should be automatically displayed during mouse drag events.
+ *
+ * @return the constant value NONE.
+ */
public int getRubberBandShape(){
return NONE;
***************
*** 43,52 ****
/**
! * provides a short name for this tool.
* The name should be suitable for inclusion in a menu or on a button.
*
! * @author James Macgill JM
! * @since 0.7.9 November 23 2000
! * @return String The name of this tool.
*/
public String getName(){
--- 56,63 ----
/**
! * Provides a short name for this tool.
* The name should be suitable for inclusion in a menu or on a button.
*
! * @return the name of this tool.
*/
public String getName(){
***************
*** 55,64 ****
/**
! * provides a description for this tool.
! * The description should briefly describe the purpose of the dool
*
! * @author James Macgill JM
! * @since 0.7.9 November 23 2000
! * @return String A description of this tool.
*/
public String getDescription(){
--- 66,73 ----
/**
! * Provides a description for this tool.
! * The description should briefly describe the purpose of the tool.
*
! * @return a description of this tool.
*/
public String getDescription(){
|
|
From: James M. <jma...@us...> - 2002-01-06 18:29:03
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools
In directory usw-pr-cvs1:/tmp/cvs-serv19900/uk/ac/leeds/ccg/geotools
Modified Files:
CSVReader.java
Log Message:
Updated and fixed JavaDoc comments
Index: CSVReader.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools/CSVReader.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -w -C2 -d -r1.6 -r1.7
*** CSVReader.java 2001/11/15 13:49:07 1.6
--- CSVReader.java 2002/01/06 18:29:00 1.7
***************
*** 1,2 ****
--- 1,9 ----
+ /*
+ * GeoTools java GIS tookit (c) The Centre for Computational Geography 2002
+ *
+ * This library is free software; you can redistribute it and/or modify it under the terms
+ * of the GNU Lesser General Public License as published by the Free Software Foundation version 2.1
+ */
+
package uk.ac.leeds.ccg.geotools;
***************
*** 7,10 ****
--- 14,26 ----
/**
* This class provides methods for reading data from CVS files and produces GeoData objects from their contents.
+ *
+ * @author James Macgill
+ * @since 0.7.9
+ * @version $Revision$ $Date$
+ *
+ * $Log$
+ * Revision 1.7 2002/01/06 18:29:00 jmacgill
+ * Updated and fixed JavaDoc comments
+ *
*/
***************
*** 17,27 ****
* present) and if it has column names (which must be in the first row if present)
*
- *
- * @author James Macgill
- * @since 0.7.9
- * @version 0.1
* @param in An InputStream to pull the data from.
* @param hasIDs true if the first column has the id for each item, false if the file has no ids at all.
* @param hasNames true if the first row of the file contains column names.
*/
public static synchronized GeoData[] getData(InputStream in, boolean hasIDs, boolean hasNames) throws IOException{
--- 33,41 ----
* present) and if it has column names (which must be in the first row if present)
*
* @param in An InputStream to pull the data from.
* @param hasIDs true if the first column has the id for each item, false if the file has no ids at all.
* @param hasNames true if the first row of the file contains column names.
+ * @return an array of GeoData objects, one for each column in the file.
+ * @throws IOException thrown if there are any problems during loading.
*/
public static synchronized GeoData[] getData(InputStream in, boolean hasIDs, boolean hasNames) throws IOException{
***************
*** 99,102 ****
--- 113,125 ----
+ /** Reads csv data from an input stream and returns an array of GeoData objects, one for each column in the file.<p>
+ * In order to parse the file correctly it needs to know whether the file has IDs (which must be in the first column if
+ * present) and if it has column names (which must be in the first row if present)
+ * @param url the url of the cvs file to read from.
+ * @param hasIDs true if the first column has the id for each item, false if the file has no ids at all.
+ * @param hasNames true if the first row of the file contains column names.
+ * @return an array of GeoData objects, one for each column in the file.
+ * @throws IOException thrown if there are any problems during loading.
+ */
public static GeoData[] getData(URL url,boolean hasIDs, boolean hasNames) throws IOException{
return getData(url.openConnection().getInputStream(),hasIDs,hasNames);
|
|
From: James M. <jma...@us...> - 2002-01-02 17:34:26
|
Update of /cvsroot/geotools/geotools/src/utils/jars
In directory usw-pr-cvs1:/tmp/cvs-serv1217/utils/jars
Modified Files:
Tag: Release_0_8_x-branch
geotools.jar
Log Message:
lstest build
Index: geotools.jar
===================================================================
RCS file: /cvsroot/geotools/geotools/src/utils/jars/geotools.jar,v
retrieving revision 1.2
retrieving revision 1.2.4.1
diff -w -C2 -d -r1.2 -r1.2.4.1
Binary files /tmp/cvsvXHSGD and /tmp/cvsgSI1E8 differ
|
|
From: James M. <jma...@us...> - 2002-01-02 17:34:01
|
Update of /cvsroot/geotools/geotools/src/demonstrations/jars
In directory usw-pr-cvs1:/tmp/cvs-serv1102/demonstrations/jars
Modified Files:
Tag: Release_0_8_x-branch
geotools.jar
Log Message:
latest build
Index: geotools.jar
===================================================================
RCS file: /cvsroot/geotools/geotools/src/demonstrations/jars/geotools.jar,v
retrieving revision 1.11.4.1
retrieving revision 1.11.4.2
diff -w -C2 -d -r1.11.4.1 -r1.11.4.2
Binary files /tmp/cvsrMBosg and /tmp/cvs2afhVo differ
|
|
From: James M. <jma...@us...> - 2002-01-02 16:51:34
|
Update of /cvsroot/geotools/geotools/src/utils/jars
In directory usw-pr-cvs1:/tmp/cvs-serv19760/utils/jars
Removed Files:
Tag: Release_0_8_x-branch
xerces.jar
Log Message:
removed as it is not needed by any of the demos in this release
--- xerces.jar DELETED ---
|
|
From: James M. <jma...@us...> - 2002-01-02 14:32:25
|
Update of /cvsroot/geotools/geotools/src/utils/jars
In directory usw-pr-cvs1:/tmp/cvs-serv13136/utils/jars
Removed Files:
Tag: Release_0_8_x-branch
simple-jprotocols.jar simple-jprotocols1.1.jar
Log Message:
removed as no utils need these files in this release of GeoTools
--- simple-jprotocols.jar DELETED ---
--- simple-jprotocols1.1.jar DELETED ---
|
|
From: James M. <jma...@us...> - 2002-01-02 14:22:53
|
Update of /cvsroot/geotools/geotools/src/demonstrations/jars
In directory usw-pr-cvs1:/tmp/cvs-serv10253/demonstrations/jars
Modified Files:
Tag: Release_0_8_x-branch
geotools.jar
Removed Files:
Tag: Release_0_8_x-branch
antlr.jar geotoolsDev.jar gml4j-jdk11.jar gml4j.jar jaxp.jar
jdom-jdk11.jar parser.jar postgis.jar postgresql.jar
simple-jprotocols.jar simple-jprotocols1.1.jar vc.jar
werken.xpath-jdk11.jar xerces.jar
Log Message:
Jars not needed for this release of GeoTools have been removed
Index: geotools.jar
===================================================================
RCS file: /cvsroot/geotools/geotools/src/demonstrations/jars/geotools.jar,v
retrieving revision 1.11
retrieving revision 1.11.4.1
diff -w -C2 -d -r1.11 -r1.11.4.1
Binary files /tmp/cvs09UL9E and /tmp/cvsETKoFb differ
--- antlr.jar DELETED ---
--- geotoolsDev.jar DELETED ---
--- gml4j-jdk11.jar DELETED ---
--- gml4j.jar DELETED ---
--- jaxp.jar DELETED ---
--- jdom-jdk11.jar DELETED ---
--- parser.jar DELETED ---
--- postgis.jar DELETED ---
--- postgresql.jar DELETED ---
--- simple-jprotocols.jar DELETED ---
--- simple-jprotocols1.1.jar DELETED ---
--- vc.jar DELETED ---
--- werken.xpath-jdk11.jar DELETED ---
--- xerces.jar DELETED ---
|
|
From: James M. <jma...@us...> - 2002-01-02 10:09:09
|
Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/geotools
In directory usw-pr-cvs1:/tmp/cvs-serv25818/uk/ac/leeds/ccg/geotools
Added Files:
Tag: Release_0_8_x-branch
VersionInfo.java VersionInfo.form
Log Message:
displays the version number - 0.8.0 pre RC1 in a dialog.
--- NEW FILE: VersionInfo.java ---
/*
* VersionInfo.java
*
* Created on 01 January 2002, 21:26
*/
package uk.ac.leeds.ccg.geotools;
/**
*
* @author James Macgill
*/
public class VersionInfo extends java.awt.Dialog {
public static final String date = "$Date";
/** Creates new form VersionInfo */
public VersionInfo(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
private void initComponents() {//GEN-BEGIN:initComponents
java.awt.GridBagConstraints gridBagConstraints;
label1 = new java.awt.Label();
label2 = new java.awt.Label();
label3 = new java.awt.Label();
setLayout(new java.awt.GridBagLayout());
setResizable(false);
setTitle("Version info for GeoTools Open Source GIS tooklit");
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
closeDialog(evt);
}
});
label1.setFont(new java.awt.Font("Dialog", 0, 14));
label1.setName("version");
label1.setText("Version : 0.8.0 preRC1");
label1.setAlignment(java.awt.Label.CENTER);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.ipadx = 327;
gridBagConstraints.ipady = 6;
gridBagConstraints.insets = new java.awt.Insets(100, 0, 0, 0);
add(label1, gridBagConstraints);
label2.setText("GeoTools is (c) 2002 James Macgill and is made available under the LGPL licence");
label2.setAlignment(java.awt.Label.CENTER);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 1;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.ipadx = 20;
gridBagConstraints.ipady = 29;
add(label2, gridBagConstraints);
label3.setText("See http://www.geotools.org for details on using this library");
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.insets = new java.awt.Insets(0, 90, 0, 0);
add(label3, gridBagConstraints);
pack();
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setSize(new java.awt.Dimension(476, 302));
setLocation((screenSize.width-476)/2,(screenSize.height-302)/2);
}//GEN-END:initComponents
/** Closes the dialog */
private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
setVisible(false);
dispose();
System.exit(0);
}//GEN-LAST:event_closeDialog
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
if(args.length>0){
System.out.println(args[0]);
}
new VersionInfo(new java.awt.Frame(), true).show();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private java.awt.Label label3;
private java.awt.Label label2;
private java.awt.Label label1;
// End of variables declaration//GEN-END:variables
}
--- NEW FILE: VersionInfo.form ---
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.0" type="org.netbeans.modules.form.forminfo.DialogFormInfo">
<Properties>
<Property name="resizable" type="boolean" value="false"/>
<Property name="title" type="java.lang.String" value="Version info for GeoTools Open Source GIS tooklit"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,46,0,0,1,-36"/>
<SyntheticProperty name="formPosition" type="java.awt.Point" value="-84,-19,0,5,115,114,0,14,106,97,118,97,46,97,119,116,46,80,111,105,110,116,-74,-60,-118,114,52,126,-56,38,2,0,2,73,0,1,120,73,0,1,121,120,112,0,0,0,0,0,0,0,0"/>
<SyntheticProperty name="formSizePolicy" type="int" value="0"/>
<SyntheticProperty name="generatePosition" type="boolean" value="true"/>
<SyntheticProperty name="generateSize" type="boolean" value="true"/>
<SyntheticProperty name="generateCenter" type="boolean" value="true"/>
<SyntheticProperty name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,46,0,0,1,-36"/>
</SyntheticProperties>
<Events>
<EventHandler event="windowClosing" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="closeDialog"/>
</Events>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
<SubComponents>
<Component class="java.awt.Label" name="label1">
<Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Dialog" size="14" style="0"/>
</Property>
<Property name="name" type="java.lang.String" value="version"/>
<Property name="text" type="java.lang.String" value="Version : 0.8.0 preRC1"/>
<Property name="alignment" type="int" value="1"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
<GridBagConstraints gridX="0" gridY="0" gridWidth="2" gridHeight="1" fill="1" ipadX="327" ipadY="6" insetsTop="100" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/>
</Constraint>
</Constraints>
</Component>
<Component class="java.awt.Label" name="label2">
<Properties>
<Property name="text" type="java.lang.String" value="GeoTools is (c) 2002 James Macgill and is made available under the LGPL licence"/>
<Property name="alignment" type="int" value="1"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
<GridBagConstraints gridX="0" gridY="1" gridWidth="2" gridHeight="1" fill="1" ipadX="20" ipadY="29" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/>
</Constraint>
</Constraints>
</Component>
<Component class="java.awt.Label" name="label3">
<Properties>
<Property name="text" type="java.lang.String" value="See http://www.geotools.org for details on using this library"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
<GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="90" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/>
</Constraint>
</Constraints>
</Component>
</SubComponents>
</Form>
|
|
From: James M. <jma...@us...> - 2002-01-02 10:07:03
|
Update of /cvsroot/geotools/geotools/src
In directory usw-pr-cvs1:/tmp/cvs-serv25417
Modified Files:
Tag: Release_0_8_x-branch
build.xml
Log Message:
merged deploy.xml into this file, switched on optimisation, and changed build to create geotools jars for 1.1 and Java2
Index: build.xml
===================================================================
RCS file: /cvsroot/geotools/geotools/src/build.xml,v
retrieving revision 1.20
retrieving revision 1.20.4.1
diff -w -C2 -d -r1.20 -r1.20.4.1
*** build.xml 2001/11/18 15:54:06 1.20
--- build.xml 2002/01/02 10:06:59 1.20.4.1
***************
*** 10,13 ****
--- 10,16 ----
<!-- change to point to your 1.1 development env -->
<property name="1.1classes" value="/apps/jdk1.1.6/lib/classes.zip" />
+ <property name="coll.import" value="com.sun.java.util.collections"/>
+ <property name="build.src" value="${src}/${build}/src1.2"/>
+ <property name="build.code" value="${src}/${build}/class1.2"/>
<target name="prepare">
***************
*** 21,25 ****
<!-- Compile the java code from ${src} into ${build} -->
<echo message="build.xml compile code in ${src} to ${build} with jars from ${jars}"/>
! <javac destdir="${build}">
<src path="${src}"/>
<include name="uk/**"/>
--- 24,28 ----
<!-- Compile the java code from ${src} into ${build} -->
<echo message="build.xml compile code in ${src} to ${build} with jars from ${jars}"/>
! <javac destdir="${build}" optimize="on">
<src path="${src}"/>
<include name="uk/**"/>
***************
*** 95,99 ****
</target>
! <target name="dist" depends="jar,docs">
<!-- Create the ${dist}/lib directory -->
<mkdir dir="${dist}/lib" />
--- 98,102 ----
</target>
! <target name="dist" depends="jar,docs,jar1.2">
<!-- Create the ${dist}/lib directory -->
<mkdir dir="${dist}/lib" />
***************
*** 104,108 ****
<mkdir dir="${dist}/lib" />
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
! <jar jarfile="${dist}/lib/GeoTools-${DSTAMP}.jar" basedir="${build}" includes="uk/**" />
<copy file="${dist}/lib/GeoTools-${DSTAMP}.jar"
tofile="${dist}/lib/geotools.jar"/>
--- 107,115 ----
<mkdir dir="${dist}/lib" />
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
! <echo file="${build}/mf.mf">Manifest-Version: 1.0
! Main-Class: uk.ac.leeds.ccg.geotools.VersionInfo
! Created-By: Ant 1.4.1"</echo>
!
! <jar jarfile="${dist}/lib/GeoTools-${DSTAMP}.jar" manifest="${build}/mf.mf" basedir="${build}" includes="uk/**" />
<copy file="${dist}/lib/GeoTools-${DSTAMP}.jar"
tofile="${dist}/lib/geotools.jar"/>
***************
*** 172,181 ****
! <target name="compile1.2">
! <ant antfile="deploy.xml" target="compile"/>
! </target>
! <target name="jar1.2">
! <ant antfile="deploy.xml" target="jar"/>
! </target>
<target name="clean">
--- 179,183 ----
!
<target name="clean">
***************
*** 195,198 ****
--- 197,248 ----
/>
</target>
+
+ <target name="compile1.2" depends="convertCollections">
+ <mkdir dir="${build.code}"/>
+ <javac srcdir="${build.src}" destdir="${build.code}">
+ <classpath>
+ <pathelement location="${jars}/xerces.jar" />
+ <pathelement location="${jars}/support.jar" />
+ <pathelement location="${jars}/JimiCore.jar" />
+ <pathelement location="${jars}/postgis.jar" />
+ <pathelement location="${jars}/postgresql.jar" />
+ <pathelement location="${jars}/dxflib.jar"/>
+ <pathelement location="${jars}/gml4j.jar"/>
+ <pathelement location="${jars}/simple-jprotocols.jar"/>
+ </classpath>
+ </javac>
+
+ </target>
+
+ <target name="convertCollections" depends="prepare-src1.2">
+ <replace dir="${build.src}" includes="**"
+ value="Comparable" token="com.sun.java.util.collections.Comparable"/>
+ <replace dir="${build.src}" includes="**"
+ value="java.util" token="${coll.import}"/>
+ </target>
+ <target name="prepare-src1.2" >
+ <!-- create directories -->
+ <mkdir dir="${build.src}"/>
+
+ <!-- copy src files -->
+ <copy todir="${build.src}/uk">
+ <fileset dir="${src}/uk"/>
+ </copy>
+ <copy todir="${build.src}/cmp">
+ <fileset dir="${src}/cmp"/>
+ </copy>
+ </target>
+ <target name="jar1.2" depends="compile1.2">
+ <mkdir dir="${dist}/lib" />
+ <tstamp/>
+ <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
+ <zip zipfile="${dist}/lib/GeoToolsSrc1.2-${DSTAMP}.zip" basedir="${build.src}" />
+ <jar jarfile="${dist}/lib/GeoTools1.2-${DSTAMP}.jar" basedir="${build.code}" />
+ <copy file="${dist}/lib/GeoTools1.2-${DSTAMP}.jar"
+ tofile="${dist}/lib/geotools1.2.jar"/>
+ </target>
+ <target name="archive">
+ <zip basedir="../src" compress="true" includes="**/**.java" zipfile="../src.zip"/>
+ </target>
</project>
|