Package org.postgis.jts
Class JtsGeometry
- java.lang.Object
-
- org.postgresql.util.PGobject
-
- org.postgis.jts.JtsGeometry
-
- All Implemented Interfaces:
Serializable,Cloneable
public class JtsGeometry extends org.postgresql.util.PGobjectJTS Geometry SQL wrapper. Supports PostGIS 1.x (lwgeom hexwkb) for writing and both PostGIS 0.x (EWKT) and 1.x (lwgeom hexwkb) for reading.- Author:
- Markus Schaber
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JtsGeometry()Constructor called by JDBC driversJtsGeometry(String value)JtsGeometry(org.locationtech.jts.geom.Geometry geom)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()booleanequals(Object obj)static org.locationtech.jts.geom.GeometrygeomFromString(String value)org.locationtech.jts.geom.GeometrygetGeometry()StringgetValue()static voidsetSridRecurse(org.locationtech.jts.geom.Geometry geom, int srid)Recursively set a srid for the geometry and all subgeometriesvoidsetValue(String value)StringtoString()
-
-
-
Constructor Detail
-
JtsGeometry
public JtsGeometry()
Constructor called by JDBC drivers
-
JtsGeometry
public JtsGeometry(org.locationtech.jts.geom.Geometry geom)
-
JtsGeometry
public JtsGeometry(String value) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
setValue
public void setValue(String value) throws SQLException
- Overrides:
setValuein classorg.postgresql.util.PGobject- Throws:
SQLException
-
geomFromString
public static org.locationtech.jts.geom.Geometry geomFromString(String value) throws SQLException
- Throws:
SQLException
-
setSridRecurse
public static void setSridRecurse(org.locationtech.jts.geom.Geometry geom, int srid)Recursively set a srid for the geometry and all subgeometries- Parameters:
geom- Geometry to work onsrid- SRID to be set to
-
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry()
-
toString
public String toString()
- Overrides:
toStringin classorg.postgresql.util.PGobject
-
getValue
public String getValue()
- Overrides:
getValuein classorg.postgresql.util.PGobject
-
clone
public Object clone()
- Overrides:
clonein classorg.postgresql.util.PGobject
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classorg.postgresql.util.PGobject
-
-