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