public class JTS extends Object
| Constructor and Description |
|---|
JTS() |
| Modifier and Type | Method and Description |
|---|---|
static Envelope<C2D> |
from(org.locationtech.jts.geom.Envelope jtsEnvelope)
Converts a JTS
Envelope to a geolatte Envelope. |
static <P extends Position> |
from(org.locationtech.jts.geom.Envelope jtsEnvelope,
CoordinateReferenceSystem<P> crs)
Converts a JTS
Envelope to a geolatte Envelope with the
specified CRS. |
static Geometry<?> |
from(org.locationtech.jts.geom.Geometry jtsGeometry)
Primary Factory method that converts a JTS geometry into an equivalent geolatte geometry
|
static <P extends Position> |
from(org.locationtech.jts.geom.Geometry jtsGeometry,
CoordinateReferenceSystem<P> crs)
Factory method that converts a JTS geometry into an equivalent geolatte geometry and allows the caller to
specify the CoordinateReferenceSystem of the resulting geolatte geometry.
|
static Class<? extends org.locationtech.jts.geom.Geometry> |
getCorrespondingJTSClass(Class<? extends Geometry> geometryClass)
Returns the JTS Geometry class that corresponds to the specified Geolatte Geometry class.
|
static org.locationtech.jts.geom.Envelope |
to(Envelope<?> env)
Converts a Geolatte
Envelope to a JTS Envelope. |
static <P extends Position> |
to(Geometry<P> geometry) |
static <P extends Position> |
to(Geometry<P> geometry,
org.locationtech.jts.geom.GeometryFactory gFact)
Primary factory method that converts a geolatte geometry into an equivalent jts geometry
|
public static Class<? extends org.locationtech.jts.geom.Geometry> getCorrespondingJTSClass(Class<? extends Geometry> geometryClass)
Geometry classes correspond iff they are of the same Geometry type in the SFS or SFA geometry model.
geometryClass - the JTS Geometry classIllegalArgumentException - when the geometryClass parameter is null.NoSuchElementException - when no corresponding class can be found.public static Geometry<?> from(org.locationtech.jts.geom.Geometry jtsGeometry)
jtsGeometry - the jts geometry to convertIllegalArgumentException - when a null object is passedpublic static <P extends Position> Geometry<P> from(org.locationtech.jts.geom.Geometry jtsGeometry, CoordinateReferenceSystem<P> crs)
jtsGeometry - the jtsGeometrycrs - the CoordinateReferenceSystemIllegalArgumentException - when a null object is passedpublic static <P extends Position> org.locationtech.jts.geom.Geometry to(Geometry<P> geometry, org.locationtech.jts.geom.GeometryFactory gFact)
geometry - the geolatte geometry to start fromgFact - the GeometryFactory to use for creating the JTS GeometryIllegalArgumentException - when a null object is passedpublic static Envelope<C2D> from(org.locationtech.jts.geom.Envelope jtsEnvelope)
Envelope to a geolatte Envelope.jtsEnvelope - the JTS Envelope to convertIllegalArgumentException - when a null object is passedpublic static <P extends Position> Envelope<P> from(org.locationtech.jts.geom.Envelope jtsEnvelope, CoordinateReferenceSystem<P> crs)
Envelope to a geolatte Envelope with the
specified CRS.jtsEnvelope - the JTS Envelope to convert.crs - the CoordinateReferenceSystem to use for the return value.IllegalArgumentException - when a null object is passedpublic static org.locationtech.jts.geom.Envelope to(Envelope<?> env)
Envelope to a JTS Envelope.env - the geolatte Envelope.IllegalArgumentException - when a null object is passedCopyright © 2019 geolatte.org. All rights reserved.