public interface PointCollection extends Cloneable, Serializable
PointCollection holds all points that determine a Geometry.
A PointCollection is conceptually a list of (lists of) Points
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PointVisitor visitor)
Accepts a
PointVisitor. |
double |
getCoordinate(int position,
CoordinateComponent component)
Returns the specified coordinate for the
Point at the specified position in this PointCollection. |
int |
getCoordinateDimension()
Returns the coordinate dimension of this
PointCollection. |
void |
getCoordinates(double[] coordinates,
int position)
Copies the coordinates of the
Point at the specified (zero-based) position in this PointCollection
into the specified coordinate array. |
CrsId |
getCrsId()
Returns the
CrsId of this PointCollection. |
DimensionalFlag |
getDimensionalFlag()
Returns the
DimensionalFlag of this PointCollection. |
double |
getM(int position)
Returns the M-coordinate for the
Point at the specified position in this PointCollection. |
double |
getX(int position)
Returns the X-coordinate for the
Point at the specified position in this PointCollection. |
double |
getY(int position)
Returns the Y-coordinate for the
Point at the specified position in this PointCollection. |
double |
getZ(int position)
Returns the Z-coordinate for the
Point at the specified position in this PointCollection. |
boolean |
is3D()
Returns true iff the
Points in this instance have a Z-coordinate. |
boolean |
isEmpty()
Returns true iff this
PointCollection contains no Points |
boolean |
isMeasured()
Returns true iff the
Points in this instance have an M-coordinate. |
int |
size()
Returns the number of
Points contained in this PointCollection. |
boolean is3D()
Points in this instance have a Z-coordinate.Points in this instance have a Z-coordinate.boolean isMeasured()
Points in this instance have an M-coordinate.Points in this instance have an M-coordinate.DimensionalFlag getDimensionalFlag()
DimensionalFlag of this PointCollection.DimensionalFlag of this PointCollectionCrsId getCrsId()
CrsId of this PointCollection.CrsId of this PointCollection.boolean isEmpty()
PointCollection contains no PointsPointCollection contains no Pointsint getCoordinateDimension()
PointCollection.
The coordinate dimension is number of measurements or axes needed to describe a position of a Point
in a coordinate system.
PointCollectionvoid getCoordinates(double[] coordinates,
int position)
Point at the specified (zero-based) position in this PointCollection
into the specified coordinate array.coordinates - an array for the coordinates of the Point at the specified positionposition - the position of the Point in this PointCollection whose coordinates
are copied into the coordinates arraydouble getX(int position)
Point at the specified position in this PointCollection.position - position of the Point in this PointCollectionPointdouble getY(int position)
Point at the specified position in this PointCollection.position - position of the Point in this PointCollectionPointdouble getZ(int position)
Point at the specified position in this PointCollection.position - position of the Point in this PointCollectionPointdouble getM(int position)
Point at the specified position in this PointCollection.position - position of the Point in this PointCollectionPointdouble getCoordinate(int position,
CoordinateComponent component)
Point at the specified position in this PointCollection.position - position of the Point in this PointCollectioncomponent - the coordinate component for which to return the coordinatePointint size()
Points contained in this PointCollection.Points contained in this PointCollection.void accept(PointVisitor visitor)
PointVisitor.
This instance will pass the visitor to all of its Points.
visitor - the visitor for this instance's PointsCopyright © 2015 geolatte.org. All rights reserved.