Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public String getName() {
}

/**
* @return fully-qualified binding class name, for example "com.vividsolutions.jts.geom.Point"
* @return fully-qualified binding class name, for example "org.locationtech.jts.geom.Point"
*/
public String getBinding() {
return binding;
Expand Down
4 changes: 2 additions & 2 deletions docs/developer/procedures/add.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ Examples of Updating JTS Jar

2. Here is an example of how to deploy the JTS binary jar::

C:\java\geotools\trunk>mvn deploy:deploy-file -DgroupId=com.vividsolutions -DartifactId=jts -Dversion=1.13 -Dfile=C:\java\jts\lib\jts-1.13.jar -Dpackaging=jar -DrepositoryId=osgeo -Durl=dav:http://download.osgeo.org/webdav/geotools/
C:\java\geotools\trunk>mvn deploy:deploy-file -DgroupId=org.locationtech -DartifactId=jts -Dversion=1.13 -Dfile=C:\java\jts\lib\jts-1.13.jar -Dpackaging=jar -DrepositoryId=osgeo -Durl=dav:http://download.osgeo.org/webdav/geotools/

3. And the source code (you will need to zip this up first since JTS does not provide a source download)::

C:\java\geotools\trunk>mvn deploy:deploy-file -DgroupId=com.vividsolutions -DartifactId=jts -Dversion=1.13 -Dfile=C:\java\jts\jts-1.13-src.zip -Dpackaging=java-source -DrepositoryId=osgeo -Durl=dav:http://download.osgeo.org/webdav/geotools/ -DgeneratePom=false
C:\java\geotools\trunk>mvn deploy:deploy-file -DgroupId=org.locationtech -DartifactId=jts -Dversion=1.13 -Dfile=C:\java\jts\jts-1.13-src.zip -Dpackaging=java-source -DrepositoryId=osgeo -Durl=dav:http://download.osgeo.org/webdav/geotools/ -DgeneratePom=false
10 changes: 5 additions & 5 deletions docs/src/main/java/org/geotools/api/APIExamples.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.geotools.api;

import com.vividsolutions.jts.geom.Envelope;
import org.geotools.geometry.jts.JTS;
import org.geotools.geometry.jts.ReferencedEnvelope;
import org.geotools.geometry.jts.ReferencedEnvelope3D;
import org.geotools.referencing.CRS;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.locationtech.jts.geom.Envelope;
import org.opengis.geometry.BoundingBox;
import org.opengis.geometry.DirectPosition;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
Expand Down Expand Up @@ -80,7 +80,7 @@ private void exampleBoundingBox() throws Exception {
//
private void exampleEnvelope() throws Exception {
// exampleEnvelope start
com.vividsolutions.jts.geom.Envelope envelope = new Envelope(0, 10, 0, 20);
org.locationtech.jts.geom.Envelope envelope = new Envelope(0, 10, 0, 20);
double xMin = envelope.getMinX();
double yMin = envelope.getMinY();

Expand Down Expand Up @@ -212,7 +212,7 @@ private void exampleReferencedEnvelopeStaticMethods() throws Exception {
CoordinateReferenceSystem crs = null; // can be 2D or 3D
org.opengis.geometry.Envelope opengis_env =
null; // can be instance of ReferencedEnvelope(3D)
com.vividsolutions.jts.geom.Envelope jts_env =
org.locationtech.jts.geom.Envelope jts_env =
null; // can be instance of ReferencedEnvelope(3D)
BoundingBox bbox = null; // can be instance of ReferencedEnvelope(3D)

Expand All @@ -226,15 +226,15 @@ private void exampleReferencedEnvelopeStaticMethods() throws Exception {
// Envelope to determine type
env = ReferencedEnvelope.create(opengis_env, crs);

// safely create ReferencedEnvelope from com.vividsolutions.jts.geom.Envelope, uses
// safely create ReferencedEnvelope from org.locationtech.jts.geom.Envelope, uses
// dimension in Envelope to determine type
env = ReferencedEnvelope.create(jts_env, crs);

// safely reference org.opengis.geometry.Envelope as ReferencedEnvelope
// --> if it is a ReferencedEnvelope(3D), simply cast it; if not, create a conversion
env = ReferencedEnvelope.reference(opengis_env);

// safely reference com.vividsolutions.jts.geom.Envelope as ReferencedEnvelope
// safely reference org.locationtech.jts.geom.Envelope as ReferencedEnvelope
// --> if it is a ReferencedEnvelope(3D), simply cast it; if not, create a conversion
env = ReferencedEnvelope.reference(jts_env);

Expand Down
10 changes: 5 additions & 5 deletions docs/src/main/java/org/geotools/cql/DataExamples.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/** */
package org.geotools.cql;

import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.MultiPolygon;
import com.vividsolutions.jts.geom.Point;
import com.vividsolutions.jts.io.WKTReader;
import java.io.IOException;
import java.text.SimpleDateFormat;
import org.apache.commons.io.FileUtils;
import org.geotools.data.DataUtilities;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.geotools.geometry.jts.JTSFactoryFinder;
import org.geotools.util.URLs;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.MultiPolygon;
import org.locationtech.jts.geom.Point;
import org.locationtech.jts.io.WKTReader;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;

Expand Down
14 changes: 7 additions & 7 deletions docs/src/main/java/org/geotools/geometry/GeometryExamples.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package org.geotools.geometry;

import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.Point;
import com.vividsolutions.jts.geom.impl.PackedCoordinateSequence;
import com.vividsolutions.jts.io.ParseException;
import com.vividsolutions.jts.io.WKTReader;
import org.geotools.geometry.jts.CircularString;
import org.geotools.geometry.jts.CurvedGeometryFactory;
import org.geotools.geometry.jts.Geometries;
import org.geotools.geometry.jts.JTSFactoryFinder;
import org.geotools.geometry.jts.WKTReader2;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.Point;
import org.locationtech.jts.geom.impl.PackedCoordinateSequence;
import org.locationtech.jts.io.ParseException;
import org.locationtech.jts.io.WKTReader;

public class GeometryExamples {

Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/java/org/geotools/grid/GridExamples.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.geotools.grid;

import com.vividsolutions.jts.geom.Polygon;
import java.awt.Color;
import java.net.URL;
import java.util.Arrays;
Expand All @@ -17,6 +16,7 @@
import org.geotools.grid.ortholine.LineOrientation;
import org.geotools.grid.ortholine.OrthoLineDef;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.locationtech.jts.geom.Polygon;
import org.opengis.feature.simple.SimpleFeatureType;
import org.opengis.referencing.crs.CoordinateReferenceSystem;

Expand Down
6 changes: 3 additions & 3 deletions docs/src/main/java/org/geotools/grid/IntersectionBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

// IntersectionBuilder start

import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.GeometryFactory;
import java.io.IOException;
import java.util.Map;
import org.geotools.data.simple.SimpleFeatureSource;
import org.geotools.factory.CommonFactoryFinder;
import org.geotools.geometry.jts.JTSFactoryFinder;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.GeometryFactory;
import org.opengis.feature.simple.SimpleFeatureType;
import org.opengis.filter.Filter;
import org.opengis.filter.FilterFactory2;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/java/org/geotools/jts/JTSExamples.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.geotools.jts;

import com.vividsolutions.jts.geom.Coordinate;
import org.geotools.geometry.jts.JTS;
import org.locationtech.jts.geom.Coordinate;
import org.opengis.referencing.crs.CoordinateReferenceSystem;

public class JTSExamples {
Expand Down
18 changes: 9 additions & 9 deletions docs/src/main/java/org/geotools/jts/SnapToLine.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
package org.geotools.jts;

import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.Envelope;
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.LineString;
import com.vividsolutions.jts.geom.MultiLineString;
import com.vividsolutions.jts.index.SpatialIndex;
import com.vividsolutions.jts.index.strtree.STRtree;
import com.vividsolutions.jts.linearref.LinearLocation;
import com.vividsolutions.jts.linearref.LocationIndexedLine;
import java.io.File;
import java.util.List;
import java.util.Random;
Expand All @@ -19,6 +10,15 @@
import org.geotools.geometry.jts.ReferencedEnvelope;
import org.geotools.swing.data.JFileDataStoreChooser;
import org.geotools.util.NullProgressListener;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.Envelope;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.LineString;
import org.locationtech.jts.geom.MultiLineString;
import org.locationtech.jts.index.SpatialIndex;
import org.locationtech.jts.index.strtree.STRtree;
import org.locationtech.jts.linearref.LinearLocation;
import org.locationtech.jts.linearref.LocationIndexedLine;
import org.opengis.feature.Feature;
import org.opengis.feature.FeatureVisitor;
import org.opengis.feature.simple.SimpleFeature;
Expand Down
6 changes: 3 additions & 3 deletions docs/src/main/java/org/geotools/main/FilterExamples.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package org.geotools.main;

import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.Point;
import com.vividsolutions.jts.geom.Polygon;
import java.awt.Rectangle;
import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
Expand All @@ -29,6 +26,9 @@
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.geotools.swing.JMapFrame;
import org.geotools.swing.event.MapMouseEvent;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.Point;
import org.locationtech.jts.geom.Polygon;
import org.opengis.feature.Feature;
import org.opengis.feature.FeatureVisitor;
import org.opengis.feature.simple.SimpleFeature;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/java/org/geotools/main/JoinExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
package org.geotools.main;

import com.vividsolutions.jts.geom.Geometry;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
Expand All @@ -22,6 +21,7 @@
import org.geotools.factory.CommonFactoryFinder;
import org.geotools.factory.GeoTools;
import org.geotools.swing.data.JFileDataStoreChooser;
import org.locationtech.jts.geom.Geometry;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
import org.opengis.filter.Filter;
Expand Down
6 changes: 3 additions & 3 deletions docs/src/main/java/org/geotools/opengis/FeatureExamples.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.geotools.opengis;

import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolutions.jts.geom.Point;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.geotools.feature.simple.SimpleFeatureTypeBuilder;
import org.geotools.geometry.jts.JTSFactoryFinder;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.Point;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.geotools.referencing;

import com.vividsolutions.jts.geom.Coordinate;
import java.awt.RenderingHints.Key;
import java.awt.geom.Point2D;
import java.util.Collections;
Expand All @@ -16,6 +15,7 @@
import org.geotools.referencing.factory.ReferencingFactoryContainer;
import org.geotools.referencing.operation.DefiningConversion;
import org.geotools.referencing.wkt.Formattable;
import org.locationtech.jts.geom.Coordinate;
import org.opengis.metadata.Identifier;
import org.opengis.parameter.ParameterValueGroup;
import org.opengis.referencing.FactoryException;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/java/org/geotools/tutorial/crs/CRSLab.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// docs start source
package org.geotools.tutorial.crs;

import com.vividsolutions.jts.geom.Geometry;
import java.awt.event.ActionEvent;
import java.io.File;
import java.io.Serializable;
Expand Down Expand Up @@ -46,6 +45,7 @@
import org.geotools.swing.JProgressWindow;
import org.geotools.swing.action.SafeAction;
import org.geotools.swing.data.JFileDataStoreChooser;
import org.locationtech.jts.geom.Geometry;
import org.opengis.feature.Feature;
import org.opengis.feature.FeatureVisitor;
import org.opengis.feature.simple.SimpleFeature;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
package org.geotools.tutorial.csv;

import com.csvreader.CsvReader;
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.GeometryFactory;
import java.io.IOException;
import java.util.NoSuchElementException;
import org.geotools.data.FeatureReader;
import org.geotools.data.Query;
import org.geotools.data.store.ContentState;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.geotools.geometry.jts.JTSFactoryFinder;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.GeometryFactory;
import org.opengis.feature.IllegalAttributeException;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
package org.geotools.tutorial.csv;

import com.csvreader.CsvReader;
import com.vividsolutions.jts.geom.Point;
import java.io.IOException;
import org.geotools.data.FeatureReader;
import org.geotools.data.Query;
Expand All @@ -19,6 +18,7 @@
import org.geotools.feature.simple.SimpleFeatureTypeBuilder;
import org.geotools.geometry.jts.ReferencedEnvelope;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.locationtech.jts.geom.Point;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
import org.opengis.filter.Filter;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/java/org/geotools/tutorial/csv/CSVTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import static org.junit.Assert.assertTrue;

import com.csvreader.CsvReader;
import com.vividsolutions.jts.geom.Geometry;
import java.io.File;
import java.io.FileReader;
import java.io.Serializable;
Expand All @@ -36,6 +35,7 @@
import org.geotools.filter.text.cql2.CQL;
import org.geotools.referencing.CRS;
import org.junit.Test;
import org.locationtech.jts.geom.Geometry;
import org.opengis.feature.Property;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import com.csvreader.CsvReader;
import com.csvreader.CsvWriter;
import com.vividsolutions.jts.geom.Point;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
Expand All @@ -26,6 +25,7 @@
import org.geotools.feature.NameImpl;
import org.geotools.referencing.CRS;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.locationtech.jts.geom.Point;
import org.opengis.feature.simple.SimpleFeatureType;
import org.opengis.feature.type.AttributeDescriptor;
import org.opengis.feature.type.GeometryDescriptor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
package org.geotools.tutorial.csv2;

import com.csvreader.CsvReader;
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.GeometryFactory;
import java.io.IOException;
import java.util.NoSuchElementException;
import org.geotools.data.FeatureReader;
import org.geotools.data.Query;
import org.geotools.data.store.ContentState;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.geotools.geometry.jts.JTSFactoryFinder;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.GeometryFactory;
import org.opengis.feature.IllegalAttributeException;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
package org.geotools.tutorial.csv2;

import com.csvreader.CsvReader;
import com.vividsolutions.jts.geom.Point;
import java.io.IOException;
import org.geotools.data.FeatureReader;
import org.geotools.data.Query;
Expand All @@ -18,6 +17,7 @@
import org.geotools.feature.simple.SimpleFeatureTypeBuilder;
import org.geotools.geometry.jts.ReferencedEnvelope;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.locationtech.jts.geom.Point;
import org.opengis.feature.FeatureVisitor;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
package org.geotools.tutorial.csv2;

import com.csvreader.CsvWriter;
import com.vividsolutions.jts.geom.Point;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
Expand All @@ -22,6 +21,7 @@
import org.geotools.data.store.ContentState;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.locationtech.jts.geom.Point;
import org.opengis.feature.Property;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
Expand Down
Loading