Class MultiPoint

Hierarchy: Object , Geometry, GeometryCollection, MultiPoint
All Implemented Interfaces: Cloneable , Comparable , Serializable , Puntal
public class MultiPoint
extends GeometryCollection
implements Puntal
Models a collection of Points.

Any collection of Points is a valid MultiPoint.

Other

  • version: 1.7
public MultiPoint(Point[] points, PrecisionModel precisionModel, int SRID)
Constructs a MultiPoint.
Parameters:
points - 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 - precisionModel the specification of the grid of allowable points for this MultiPoint
SRID - SRID the ID of the Spatial Reference System used by this MultiPoint
Deprecation:
Use GeometryFactory instead
public MultiPoint(Point[] points, GeometryFactory factory)
Parameters:
points - 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.
public int getDimension()
public int getBoundaryDimension()
public String getGeometryType()
public Geometry getBoundary()
Gets the boundary of this geometry. Zero-dimensional geometries have no boundary by definition, so an empty GeometryCollection is returned.
See also:
Geometry#getBoundary
Returns:
an empty GeometryCollection
public MultiPoint reverse()
public boolean isValid()
public boolean equalsExact(Geometry other, double tolerance)
protected Coordinate getCoordinate(int n)
Returns the Coordinate at the given position.
Parameters:
n - n the index of the Coordinate to retrieve, beginning at 0
Returns:
the nth Coordinate
protected MultiPoint copyInternal()
protected int getTypeCode()