public interface PointCollection extends Cloneable, Serializable
PointCollection
holds all points that determine a Geometry
.
A PointCollection is conceptually a list of (lists of) Point
s
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
Point s in this instance have a Z-coordinate. |
boolean |
isEmpty()
Returns true iff this
PointCollection contains no Point s |
boolean |
isMeasured()
Returns true iff the
Point s in this instance have an M-coordinate. |
int |
size()
Returns the number of
Point s contained in this PointCollection . |
boolean is3D()
Point
s in this instance have a Z-coordinate.Point
s in this instance have a Z-coordinate.boolean isMeasured()
Point
s in this instance have an M-coordinate.Point
s in this instance have an M-coordinate.DimensionalFlag getDimensionalFlag()
DimensionalFlag
of this PointCollection
.DimensionalFlag
of this PointCollection
CrsId getCrsId()
CrsId
of this PointCollection
.CrsId
of this PointCollection
.boolean isEmpty()
PointCollection
contains no Point
sPointCollection
contains no Point
sint getCoordinateDimension()
PointCollection
.
The coordinate dimension is number of measurements or axes needed to describe a position of a Point
in a coordinate system.
PointCollection
void 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 PointCollection
Point
double getY(int position)
Point
at the specified position in this PointCollection
.position
- position of the Point
in this PointCollection
Point
double getZ(int position)
Point
at the specified position in this PointCollection
.position
- position of the Point
in this PointCollection
Point
double getM(int position)
Point
at the specified position in this PointCollection
.position
- position of the Point
in this PointCollection
Point
double getCoordinate(int position, CoordinateComponent component)
Point
at the specified position in this PointCollection
.position
- position of the Point
in this PointCollection
component
- the coordinate component for which to return the coordinatePoint
int size()
Point
s contained in this PointCollection
.Point
s contained in this PointCollection
.void accept(PointVisitor visitor)
PointVisitor
.
This instance will pass the visitor to all of its Point
s.
visitor
- the visitor for this instance's Point
sCopyright © 2015 geolatte.org. All rights reserved.