Package net.postgis.jdbc
Class PGgeo
java.lang.Object
org.postgresql.util.PGobject
net.postgis.jdbc.PGgeo
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
PGgeography,PGgeometry
public class PGgeo
extends org.postgresql.util.PGobject
A PostgreSQL JDBC PGobject extension data type modeling a "geo" type.
This class serves as a common superclass for classes such as PGgeometry and PGgeography which model
more specific type semantics.
- Author:
- Phillip Ross
- See Also:
-
Field Summary
Fields inherited from class org.postgresql.util.PGobject
type, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Get the encapsulated geometry.intGet the type of the encapsulated geometry.getValue()voidsetGeometry(Geometry geometry) Set the encapsulated geometry.voidtoString()Methods inherited from class org.postgresql.util.PGobject
equals, equals, getType, hashCode, isNull, setType
-
Constructor Details
-
PGgeo
protected PGgeo()Instantiate with default state. -
PGgeo
Instantiate with the specified state.- Parameters:
geometry- the geometry to instantiate with
-
PGgeo
Instantiate with the specified state.- Parameters:
value- the value to instantiate with- Throws:
SQLException
-
-
Method Details
-
getValue
- Overrides:
getValuein classorg.postgresql.util.PGobject
-
setValue
- Overrides:
setValuein classorg.postgresql.util.PGobject- Throws:
SQLException
-
getGeometry
Get the encapsulated geometry.- Returns:
- the encapsulated geomtery
-
setGeometry
Set the encapsulated geometry.- Parameters:
geometry- the encapsulated geometry
-
getGeoType
public int getGeoType()Get the type of the encapsulated geometry.- Returns:
- the type of the encapsulated geometry
-
toString
- Overrides:
toStringin classorg.postgresql.util.PGobject
-
clone
- Overrides:
clonein classorg.postgresql.util.PGobject
-