it.cutruzzula.lwkt.geometry
Class MultiPolygon

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

public class MultiPolygon
extends AbstractGeometry

The class represents a MULTIPOLYGON object.


Constructor Summary
MultiPolygon(java.util.List<Polygon> polygons)
          Constructor.
 
Method Summary
 java.util.List<Polygon> getPolygons()
          Method to get the list of 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

MultiPolygon

public MultiPolygon(java.util.List<Polygon> polygons)
             throws java.lang.Exception
Constructor.

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

getPolygons

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

Returns:
A java.util.List of Polygon objects

getType

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

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