it.cutruzzula.lwkt.geometry
Class MultiPoint

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

public class MultiPoint
extends AbstractGeometry

The class represents a MULTIPOINT object.


Constructor Summary
MultiPoint(java.util.List<Point> points)
          Constructor.
 
Method Summary
 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.lwkt.geometry.AbstractGeometry
getDimensions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPoint

public MultiPoint(java.util.List<Point> points)
           throws java.lang.Exception
Constructor.

Parameters:
points - A java.util.List of Point objects
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

getType

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

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