it.cutruzzula.lwkt.geometry
Class Polygon

java.lang.Object
  extended by it.cutruzzula.lwkt.geometry.AbstractGeometry
      extended by it.cutruzzula.lwkt.geometry.Polygon

public class Polygon
extends AbstractGeometry

The class represents a POLYGON object.


Constructor Summary
Polygon(java.util.List<MultiPoint> multiPoints)
          Constructor.
 
Method Summary
 MultiPoint getExterior()
          Method to get the external multi-point.
 java.util.List<MultiPoint> getInteriors()
          Method to get the list of internal multi-points.
 java.util.List<MultiPoint> getMultiPoints()
          Method to get the list of multi-points.
 java.lang.String getType()
          Method to get the geometry type.
 
Methods inherited from class it.cutruzzula.lwkt.geometry.AbstractGeometry
getDimensions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Polygon

public Polygon(java.util.List<MultiPoint> multiPoints)
        throws java.lang.Exception
Constructor.

Parameters:
multiPoints - A java.util.List of MultiPoint objects
Throws:
A - generic exception if dimensions are not homogeneous or rings are not closed
java.lang.Exception
Method Detail

getMultiPoints

public java.util.List<MultiPoint> getMultiPoints()
Method to get the list of multi-points.

Returns:
A java.util.List of MultiPoint objects

getExterior

public MultiPoint getExterior()
Method to get the external multi-point.

Returns:
A MultiPoint object

getInteriors

public java.util.List<MultiPoint> getInteriors()
Method to get the list of internal multi-points.

Returns:
A java.util.List of MultiPoint objects

getType

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

Specified by:
getType in class AbstractGeometry
Returns:
"POLYGON" constant