Package io.github.sebasbaumh.postgis
Class PGgeometry
- java.lang.Object
-
- org.postgresql.util.PGobject
-
- io.github.sebasbaumh.postgis.PGgeometry
-
- All Implemented Interfaces:
Serializable,Cloneable
@NonNullByDefault public class PGgeometry extends org.postgresql.util.PGobjectBasic geometry class.- Author:
- Sebastian Baumhekel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PGgeometry()Constructs an instance.PGgeometry(Geometry geom)Constructs an instance.PGgeometry(String value)Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()GeometrygetGeometry()Gets the underlyingGeometry.intgetGeoType()Gets the OGIS geometry type.StringgetValue()voidsetGeometry(Geometry newgeom)Sets the underlyingGeometry.voidsetValue(String value)StringtoString()
-
-
-
Constructor Detail
-
PGgeometry
public PGgeometry()
Constructs an instance.
-
PGgeometry
public PGgeometry(String value) throws SQLException
Constructs an instance.- Parameters:
value- geometry- Throws:
SQLException
-
-
Method Detail
-
clone
public Object clone()
- Overrides:
clonein classorg.postgresql.util.PGobject
-
getGeoType
public int getGeoType()
Gets the OGIS geometry type.- Returns:
- geometry type
-
getValue
public String getValue()
- Overrides:
getValuein classorg.postgresql.util.PGobject
-
setGeometry
public void setGeometry(Geometry newgeom)
Sets the underlyingGeometry.- Parameters:
newgeom-Geometry
-
setValue
public void setValue(@Nonnull String value) throws SQLException
- Overrides:
setValuein classorg.postgresql.util.PGobject- Throws:
SQLException
-
toString
public String toString()
- Overrides:
toStringin classorg.postgresql.util.PGobject
-
-