Package org.geotools.data.h2
Class JTS
- Object
-
- JTS
-
public class JTS extends Object
Static collection of JTS operations.- Author:
- David Blasby, The Open Planning Project, dblasby@openplans.org, Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
-
-
Constructor Summary
Constructors Constructor Description JTS()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringAsWKT(byte[] wkb)Returns the Well Known Text of the geometry.static EnvelopeEnvelope(byte[] wkb)Returns the envelope for a geometry.static StringEnvelopeAsText(byte[] wkb)Returns the text representation of the envelope of the geometry.static StringGeometryType(byte[] wkb)Returns the type of the geometry as a string.static byte[]GeomFromText(String wkt, int srid)Reads a geometry from its well known text representation, specifying an srid.static byte[]GeomFromWKB(byte[] wkb)static StringGeoToolsVersion()Returns the current GeoTools version.static intGetSRID(byte[] wkb)Returns the spatial reference identifier for the geometry.
-
-
-
Method Detail
-
GeoToolsVersion
public static String GeoToolsVersion()
Returns the current GeoTools version.
-
AsWKT
public static String AsWKT(byte[] wkb)
Returns the Well Known Text of the geometry.
-
EnvelopeAsText
public static String EnvelopeAsText(byte[] wkb)
Returns the text representation of the envelope of the geometry.
-
GeomFromText
public static byte[] GeomFromText(String wkt, int srid)
Reads a geometry from its well known text representation, specifying an srid.- Parameters:
wkt- The well known text of the geometry.srid- The srid of the geometry- Returns:
- An array of bytes representing the geometry.
-
GeomFromWKB
public static byte[] GeomFromWKB(byte[] wkb)
-
GetSRID
public static int GetSRID(byte[] wkb)
Returns the spatial reference identifier for the geometry.This method will return -1 if wkb is
null.- Parameters:
wkb- The geometry.- Returns:
- The srid.
-
Envelope
public static Envelope Envelope(byte[] wkb)
Returns the envelope for a geometry.This method will return an "null" envelope (
Envelope.setToNull()) if wkb isnull.- Parameters:
wkb- The geometry.- Returns:
- The envelope of the geometry.
-
GeometryType
public static String GeometryType(byte[] wkb)
Returns the type of the geometry as a string. Eg: 'LINESTRING', 'POLYGON', 'MULTIPOINT', etc.This method returns
nullwhen wkb isnull.- Parameters:
wkb- The geometry.
-
-