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 coordinatesObjectgetData()Get the dataDimensiongetDimension()Get the DimensionEnvelopegetEnvelope()Get the bounding Envelopeabstract intgetNumberOfCoordinates()Get the number of coordinatesStringgetSrid()Get the SRID which often is nullabstract booleanisEmpty()Is this Geometry empty?GeometrysetData(Object data)Set the dataGeometrysetSrid(String srid)Set the SRID for this GeometryTypeStringtoString()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
-
-