it.cutruzzula.lwkt.geometry
Class AbstractGeometry

java.lang.Object
  extended by it.cutruzzula.lwkt.geometry.AbstractGeometry
Direct Known Subclasses:
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
 int getDimensions()
          Method to get the number of SRS dimensions.
abstract  java.lang.String getType()
          Method to get the geometry type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGeometry

public AbstractGeometry()
Method Detail

getDimensions

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

Returns:
The number of SRS dimensions

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"