Package org.cugos.wkg
Class Geometry
- java.lang.Object
-
- org.cugos.wkg.Geometry
-
- Direct Known Subclasses:
AbstractGeometryCollection
,Curve
,Point
,Surface
public abstract class Geometry extends Object
The Abstract base class for all Geometries- Author:
- Jared Erickson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<Coordinate>
getCoordinates()
Get a List of all coordinatesObject
getData()
Get the dataDimension
getDimension()
Get the DimensionEnvelope
getEnvelope()
Get the bounding Envelopeabstract int
getNumberOfCoordinates()
Get the number of coordinatesString
getSrid()
Get the SRID which often is nullabstract boolean
isEmpty()
Is this Geometry empty?Geometry
setData(Object data)
Set the dataGeometry
setSrid(String srid)
Set the SRID for this GeometryTypeString
toString()
Write the Geometry to WKT
-
-
-
Method Detail
-
isEmpty
public abstract boolean isEmpty()
Is this Geometry empty?- Returns:
- Whether the Geometry is empty
-
getNumberOfCoordinates
public abstract int getNumberOfCoordinates()
Get the number of coordinates- Returns:
- The number of coordinates
-
getCoordinates
public abstract List<Coordinate> getCoordinates()
Get a List of all coordinates- Returns:
- A List of all coordinates
-
getEnvelope
public Envelope getEnvelope()
Get the bounding Envelope- Returns:
- The bounding Envelope
-
getSrid
public String getSrid()
Get the SRID which often is null- Returns:
- The SRID
-
setSrid
public Geometry setSrid(String srid)
Set the SRID for this GeometryType- Parameters:
srid
- The SRID- Returns:
- This Geometry
-
getData
public Object getData()
Get the data- Returns:
- The data
-
setData
public Geometry setData(Object data)
Set the data- Parameters:
data
- The data- Returns:
- This Geometry
-
getDimension
public Dimension getDimension()
Get the Dimension- Returns:
- The Dimension
-
-