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 GeometryCollection<?> |
from(org.locationtech.jts.geom.GeometryCollection jtsGeometry) |
static <P extends Position> |
from(org.locationtech.jts.geom.GeometryCollection jtsGeometry,
CoordinateReferenceSystem<P> crs) |
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 <P extends Position> |
from(org.locationtech.jts.geom.LinearRing jtsLinearRing,
CoordinateReferenceSystem<P> crs) |
static LineString<?> |
from(org.locationtech.jts.geom.LineString jtsGeometry) |
static <P extends Position> |
from(org.locationtech.jts.geom.LineString jtsLineString,
CoordinateReferenceSystem<P> crs) |
static MultiLineString<?> |
from(org.locationtech.jts.geom.MultiLineString jtsGeometry) |
static <P extends Position> |
from(org.locationtech.jts.geom.MultiLineString jtsGeometry,
CoordinateReferenceSystem<P> crs) |
static MultiPoint<?> |
from(org.locationtech.jts.geom.MultiPoint jtsGeometry) |
static <P extends Position> |
from(org.locationtech.jts.geom.MultiPoint jtsMultiPoint,
CoordinateReferenceSystem<P> crs) |
static MultiPolygon<?> |
from(org.locationtech.jts.geom.MultiPolygon jtsGeometry) |
static <P extends Position> |
from(org.locationtech.jts.geom.MultiPolygon jtsGeometry,
CoordinateReferenceSystem<P> crs) |
static Point<?> |
from(org.locationtech.jts.geom.Point jtsGeometry) |
static <P extends Position> |
from(org.locationtech.jts.geom.Point jtsPoint,
CoordinateReferenceSystem<P> crs) |
static Polygon<?> |
from(org.locationtech.jts.geom.Polygon jtsGeometry) |
static <P extends Position> |
from(org.locationtech.jts.geom.Polygon jtsGeometry,
CoordinateReferenceSystem<P> crs) |
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
|
static <P extends Position> |
to(GeometryCollection<P> geometry) |
static <P extends Position> |
to(LineString<P> geometry) |
static <P extends Position> |
to(MultiLineString<P> geometry) |
static <P extends Position> |
to(MultiPoint<P> geometry) |
static <P extends Position> |
to(MultiPolygon<P> geometry) |
static <P extends Position> |
to(Point<P> geometry) |
static <P extends Position> |
to(Polygon<P> 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 Point<?> from(org.locationtech.jts.geom.Point jtsGeometry)
public static LineString<?> from(org.locationtech.jts.geom.LineString jtsGeometry)
public static Polygon<?> from(org.locationtech.jts.geom.Polygon jtsGeometry)
public static MultiPoint<?> from(org.locationtech.jts.geom.MultiPoint jtsGeometry)
public static MultiLineString<?> from(org.locationtech.jts.geom.MultiLineString jtsGeometry)
public static MultiPolygon<?> from(org.locationtech.jts.geom.MultiPolygon jtsGeometry)
public static GeometryCollection<?> from(org.locationtech.jts.geom.GeometryCollection jtsGeometry)
public 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 <P extends Position> org.locationtech.jts.geom.LineString to(LineString<P> geometry)
public static <P extends Position> org.locationtech.jts.geom.MultiPoint to(MultiPoint<P> geometry)
public static <P extends Position> org.locationtech.jts.geom.MultiLineString to(MultiLineString<P> geometry)
public static <P extends Position> org.locationtech.jts.geom.MultiPolygon to(MultiPolygon<P> geometry)
public static <P extends Position> org.locationtech.jts.geom.GeometryCollection to(GeometryCollection<P> geometry)
public 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 passedpublic static <P extends Position> MultiPolygon<P> from(org.locationtech.jts.geom.MultiPolygon jtsGeometry, CoordinateReferenceSystem<P> crs)
public static <P extends Position> Polygon<P> from(org.locationtech.jts.geom.Polygon jtsGeometry, CoordinateReferenceSystem<P> crs)
public static <P extends Position> MultiLineString<P> from(org.locationtech.jts.geom.MultiLineString jtsGeometry, CoordinateReferenceSystem<P> crs)
public static <P extends Position> GeometryCollection<P> from(org.locationtech.jts.geom.GeometryCollection jtsGeometry, CoordinateReferenceSystem<P> crs)
public static <P extends Position> LineString<P> from(org.locationtech.jts.geom.LineString jtsLineString, CoordinateReferenceSystem<P> crs)
public static <P extends Position> LinearRing<P> from(org.locationtech.jts.geom.LinearRing jtsLinearRing, CoordinateReferenceSystem<P> crs)
public static <P extends Position> MultiPoint<P> from(org.locationtech.jts.geom.MultiPoint jtsMultiPoint, CoordinateReferenceSystem<P> crs)
public static <P extends Position> Point<P> from(org.locationtech.jts.geom.Point jtsPoint, CoordinateReferenceSystem<P> crs)
Copyright © 2023 geolatte.org. All rights reserved.