com.vividsolutions.jts.geom

Class MultiPoint

Implemented Interfaces:
Cloneable, Comparable, Serializable

public class MultiPoint
extends GeometryCollection

Models a collection of Points.
Version:
1.7

Field Summary

Fields inherited from class com.vividsolutions.jts.geom.GeometryCollection

geometries

Fields inherited from class com.vividsolutions.jts.geom.Geometry

SRID, envelope

Constructor Summary

MultiPoint(Point[] points, GeometryFactory factory)
MultiPoint(Point[] points, PrecisionModel precisionModel, int SRID)
Deprecated. Use GeometryFactory instead

Method Summary

boolean
equalsExact(Geometry other, double tolerance)
Geometry
getBoundary()
int
getBoundaryDimension()
protected Coordinate
getCoordinate(int n)
Returns the Coordinate at the given position.
int
getDimension()
String
getGeometryType()
boolean
isSimple()
boolean
isValid()

Methods inherited from class com.vividsolutions.jts.geom.GeometryCollection

apply, apply, apply, clone, compareToSameClass, compareToSameClass, computeEnvelopeInternal, equalsExact, getArea, getBoundary, getBoundaryDimension, getCoordinate, getCoordinates, getDimension, getGeometryN, getGeometryType, getLength, getNumGeometries, getNumPoints, isEmpty, isSimple, normalize

Methods inherited from class com.vividsolutions.jts.geom.Geometry

apply, apply, apply, buffer, buffer, buffer, checkNotGeometryCollection, clone, compare, compareTo, compareTo, compareToSameClass, compareToSameClass, computeEnvelopeInternal, contains, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equalsExact, equalsExact, geometryChanged, geometryChangedAction, getArea, getBoundary, getBoundaryDimension, getCentroid, getCoordinate, getCoordinates, getDimension, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getGeometryType, getInteriorPoint, getLength, getNumGeometries, getNumPoints, getPrecisionModel, getSRID, getUserData, hasNonEmptyElements, hasNullElements, intersection, intersects, isEmpty, isEquivalentClass, isRectangle, isSimple, isValid, isWithinDistance, normalize, overlaps, relate, relate, setSRID, setUserData, symDifference, toString, toText, touches, union, within

Constructor Details

MultiPoint

public MultiPoint(Point[] points,
                  GeometryFactory factory)
Parameters:
points - the Points for this MultiPoint , or null or an empty array to create the empty geometry. Elements may be empty Points, but not nulls.

MultiPoint

public MultiPoint(Point[] points,
                  PrecisionModel precisionModel,
                  int SRID)

Deprecated. Use GeometryFactory instead

Constructs a MultiPoint.
Parameters:
points - the Points for this MultiPoint , or null or an empty array to create the empty geometry. Elements may be empty Points, but not nulls.
precisionModel - the specification of the grid of allowable points for this MultiPoint
SRID - the ID of the Spatial Reference System used by this MultiPoint

Method Details

equalsExact

public boolean equalsExact(Geometry other,
                           double tolerance)
Overrides:
equalsExact in interface GeometryCollection

getBoundary

public Geometry getBoundary()
Overrides:
getBoundary in interface GeometryCollection

getBoundaryDimension

public int getBoundaryDimension()
Overrides:
getBoundaryDimension in interface GeometryCollection

getCoordinate

protected Coordinate getCoordinate(int n)
Returns the Coordinate at the given position.
Parameters:
n - the index of the Coordinate to retrieve, beginning at 0
Returns:
the nth Coordinate

getDimension

public int getDimension()
Overrides:
getDimension in interface GeometryCollection

getGeometryType

public String getGeometryType()
Overrides:
getGeometryType in interface GeometryCollection

isSimple

public boolean isSimple()
Overrides:
isSimple in interface GeometryCollection

isValid

public boolean isValid()
Overrides:
isValid in interface Geometry