public class JTS extends Object
Constructor and Description |
---|
JTS() |
Modifier and Type | Method and Description |
---|---|
static Envelope |
from(com.vividsolutions.jts.geom.Envelope jtsEnvelope)
Converts a JTS
Envelope to a geolatte Envelope . |
static Envelope |
from(com.vividsolutions.jts.geom.Envelope jtsEnvelope,
CrsId crsId)
Converts a JTS
Envelope to a geolatte Envelope with the
specified CRS. |
static Geometry |
from(com.vividsolutions.jts.geom.Geometry jtsGeometry)
Primary Factory method that converts a JTS geometry into an equivalent geolatte geometry
|
static Geometry |
from(com.vividsolutions.jts.geom.Geometry jtsGeometry,
CrsId crsId)
Factory method that converts a JTS geometry into an equivalent geolatte geometry and allows the caller to
specify the srid value of the resulting geolatte geometry.
|
static com.vividsolutions.jts.geom.GeometryFactory |
geometryFactory() |
static Class<? extends Geometry> |
getCorrespondingGeolatteClass(Class<? extends com.vividsolutions.jts.geom.Geometry> jtsGeometryClass)
Returns the Geolatte Geometry class that corresponds to the specified JTS class.
|
static Class<? extends com.vividsolutions.jts.geom.Geometry> |
getCorrespondingJTSClass(Class<? extends Geometry> geometryClass)
Returns the JTS Geometry class that corresponds to the specified Geolatte Geometry class.
|
static com.vividsolutions.jts.geom.Envelope |
to(Envelope env)
Converts a Geolatte
Envelope to a JTS Envelope . |
static com.vividsolutions.jts.geom.Geometry |
to(Geometry geometry)
Primary factory method that converts a geolatte geometry into an equivalent jts geometry
|
public static com.vividsolutions.jts.geom.GeometryFactory geometryFactory()
public static Class<? extends com.vividsolutions.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 Class<? extends Geometry> getCorrespondingGeolatteClass(Class<? extends com.vividsolutions.jts.geom.Geometry> jtsGeometryClass)
Geometry classes correspond iff they are of the same Geometry type in the SFS or SFA geometry model.
jtsGeometryClass
- the Geolatte Geometry classIllegalArgumentException
- when the jtsGeometryClass parameter is null.NoSuchElementException
- when no corresponding class can be found.public static Geometry from(com.vividsolutions.jts.geom.Geometry jtsGeometry)
jtsGeometry
- the jts geometry to convertIllegalArgumentException
- when a null object is passedpublic static Geometry from(com.vividsolutions.jts.geom.Geometry jtsGeometry, CrsId crsId)
jtsGeometry
- the jtsGeometrycrsId
- IllegalArgumentException
- when a null object is passedpublic static com.vividsolutions.jts.geom.Geometry to(Geometry geometry)
geometry
- the geolatte geometry to start fromIllegalArgumentException
- when a null object is passedpublic static Envelope from(com.vividsolutions.jts.geom.Envelope jtsEnvelope)
Envelope
to a geolatte Envelope
.jtsEnvelope
- the JTS Envelope to convertIllegalArgumentException
- when a null object is passedpublic static Envelope from(com.vividsolutions.jts.geom.Envelope jtsEnvelope, CrsId crsId)
Envelope
to a geolatte Envelope
with the
specified CRS.jtsEnvelope
- the JTS Envelope to convert.crsId
- the CrsId
to use for the return value.IllegalArgumentException
- when a null object is passedpublic static com.vividsolutions.jts.geom.Envelope to(Envelope env)
Envelope
to a JTS Envelope
.env
- the geolatte Envelope.IllegalArgumentException
- when a null object is passedCopyright © 2015 geolatte.org. All rights reserved.