Package io.github.sebasbaumh.postgis
Class PGgeometry
- java.lang.Object
-
- org.postgresql.util.PGobject
-
- io.github.sebasbaumh.postgis.PGgeometry
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
@NonNullByDefault public class PGgeometry extends org.postgresql.util.PGobject
Basic 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(java.lang.String value)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Geometry
getGeometry()
Gets the underlyingGeometry
.int
getGeoType()
Gets the OGIS geometry type.java.lang.String
getValue()
void
setGeometry(Geometry newgeom)
Sets the underlyingGeometry
.void
setValue(java.lang.String value)
java.lang.String
toString()
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classorg.postgresql.util.PGobject
-
getGeoType
public int getGeoType()
Gets the OGIS geometry type.- Returns:
- geometry type
-
getValue
public java.lang.String getValue()
- Overrides:
getValue
in classorg.postgresql.util.PGobject
-
setGeometry
public void setGeometry(Geometry newgeom)
Sets the underlyingGeometry
.- Parameters:
newgeom
-Geometry
-
setValue
public void setValue(@Nonnull java.lang.String value) throws java.sql.SQLException
- Overrides:
setValue
in classorg.postgresql.util.PGobject
- Throws:
java.sql.SQLException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classorg.postgresql.util.PGobject
-
-