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 SummaryConstructors Constructor Description JTS()
 - 
Method SummaryAll 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- 
GeoToolsVersionpublic static String GeoToolsVersion() Returns the current GeoTools version.
 - 
AsWKTpublic static String AsWKT(byte[] wkb) Returns the Well Known Text of the geometry.
 - 
EnvelopeAsTextpublic static String EnvelopeAsText(byte[] wkb) Returns the text representation of the envelope of the geometry.
 - 
GeomFromTextpublic 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.
 
 - 
GeomFromWKBpublic static byte[] GeomFromWKB(byte[] wkb) 
 - 
GetSRIDpublic 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.
 
 - 
Envelopepublic 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.
 
 - 
GeometryTypepublic 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.
 
 
- 
 
-