it.cutruzzula.lgml.geometry
Class LinearRing

java.lang.Object
  extended by it.cutruzzula.lgml.geometry.AbstractGeometry
      extended by it.cutruzzula.lgml.geometry.LinearRing

public class LinearRing
extends AbstractGeometry

The class represents a linear-ring object. It is not a WKT object, is only used in order to build polygons.


Constructor Summary
LinearRing(java.util.List<Point> points, int srsDimension)
          Constructor.
 
Method Summary
 java.lang.String asWKT()
          Method to get the WKT form of this linear-ring object.
 java.util.List<Point> getPoints()
          Method to get the list of points.
 java.lang.String getType()
          Method to get the geometry type.
 
Methods inherited from class it.cutruzzula.lgml.geometry.AbstractGeometry
getSrsDimension, getSrsName, setSrsName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearRing

public LinearRing(java.util.List<Point> points,
                  int srsDimension)
           throws java.lang.Exception
Constructor.

Parameters:
points - A java.util.List of Point objects
srsDimension - The number of dimensions
Throws:
A - generic exception if dimensions are not homogeneous
java.lang.Exception
Method Detail

getPoints

public java.util.List<Point> getPoints()
Method to get the list of points.

Returns:
A java.util.List of Point objects

asWKT

public java.lang.String asWKT()
Method to get the WKT form of this linear-ring object.

Specified by:
asWKT in class AbstractGeometry
Returns:
An empty string

getType

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

Specified by:
getType in class AbstractGeometry
Returns:
An empty string