public class SpatialTypeUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SpatialTypeUtils.SpatialType
Geometry types, with the names and codes assigned by OGC.
|
| Modifier and Type | Field and Description |
|---|---|
static org.locationtech.jts.geom.GeometryFactory |
GEOMETRY_FACTORY |
| Modifier and Type | Method and Description |
|---|---|
static String |
asEwkt(org.locationtech.jts.geom.Geometry geometry)
Returns the Extended Well-Known text (EWKT) representation of the geometry.
|
static String |
asGeoJson(org.locationtech.jts.geom.Geometry geometry)
Returns the GeoJson representation of the geometry.
|
static String |
asGml(org.locationtech.jts.geom.Geometry geometry)
Returns the GML representation of the geometry.
|
static org.apache.calcite.avatica.util.ByteString |
asWkb(org.locationtech.jts.geom.Geometry geometry)
Returns the Extended Well-Known binary (WKB) representation of the geometry.
|
static String |
asWkt(org.locationtech.jts.geom.Geometry geometry)
Returns the Well-Known text (WKT) representation of the geometry.
|
static org.locationtech.jts.geom.Geometry |
fromEwkt(String ewkt)
Constructs a geometry from an Extended Well-Known text (EWKT) representation.
|
static org.locationtech.jts.geom.Geometry |
fromGeoJson(String geoJson)
Constructs a geometry from a GeoJson representation.
|
static org.locationtech.jts.geom.Geometry |
fromGml(String gml)
Constructs a geometry from a GML representation.
|
static org.locationtech.jts.geom.Geometry |
fromWkb(org.apache.calcite.avatica.util.ByteString wkb)
Constructs a geometry from a Well-Known binary (WKB) representation.
|
static org.locationtech.jts.geom.Geometry |
fromWkt(String wkt)
Constructs a geometry from a Well-Known text (WKT) representation.
|
public static final org.locationtech.jts.geom.GeometryFactory GEOMETRY_FACTORY
public static org.locationtech.jts.geom.Geometry fromGeoJson(String geoJson)
geoJson - a GeoJsonpublic static org.locationtech.jts.geom.Geometry fromGml(String gml)
gml - a GMLpublic static org.locationtech.jts.geom.Geometry fromWkb(org.apache.calcite.avatica.util.ByteString wkb)
wkb - a WKBpublic static org.locationtech.jts.geom.Geometry fromEwkt(String ewkt)
ewkt - an EWKTpublic static org.locationtech.jts.geom.Geometry fromWkt(String wkt)
wkt - a WKTpublic static String asGeoJson(org.locationtech.jts.geom.Geometry geometry)
geometry - a geometrypublic static String asGml(org.locationtech.jts.geom.Geometry geometry)
geometry - a geometrypublic static org.apache.calcite.avatica.util.ByteString asWkb(org.locationtech.jts.geom.Geometry geometry)
geometry - a geometrypublic static String asEwkt(org.locationtech.jts.geom.Geometry geometry)
geometry - a geometrypublic static String asWkt(org.locationtech.jts.geom.Geometry geometry)
geometry - a geometryCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.