it.cutruzzula.lgml.geometry
Class AbstractGeometry

java.lang.Object
  extended by it.cutruzzula.lgml.geometry.AbstractGeometry
Direct Known Subclasses:
Envelope, LinearRing, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon

public abstract class AbstractGeometry
extends java.lang.Object

The abstract class to derive WKT objects


Constructor Summary
AbstractGeometry()
           
 
Method Summary
abstract  java.lang.String asWKT()
          Method to get the parsed GML content as WKT.
 int getSrsDimension()
          Method to get the number of SRS dimensions.
 java.lang.String getSrsName()
          Method to get the SRS name.
abstract  java.lang.String getType()
          Method to get the geometry type.
 void setSrsName(java.lang.String srsName)
          Method to set the the SRS name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGeometry

public AbstractGeometry()
Method Detail

getSrsName

public final java.lang.String getSrsName()
Method to get the SRS name.

Returns:
The SRS name, or null if not found in input GML

setSrsName

public final void setSrsName(java.lang.String srsName)
Method to set the the SRS name.

Parameters:
srsName - The SRS name

getSrsDimension

public final int getSrsDimension()
Method to get the number of SRS dimensions.

Returns:
The number of SRS dimensions, 2 (default) or 3 (if found in input GML)

getType

public abstract java.lang.String getType()
Method to get the geometry type.

Returns:
The string constant of the type, for example "POINT" or "POLYGON"

asWKT

public abstract java.lang.String asWKT()
Method to get the parsed GML content as WKT.

Returns:
The WKT string