public class EmptyPointSequence extends Object implements PointSequence, com.vividsolutions.jts.geom.CoordinateSequence
PointSequence.| Modifier and Type | Field and Description |
|---|---|
static EmptyPointSequence |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PointVisitor visitor)
Accepts a
PointVisitor. |
EmptyPointSequence |
clone() |
boolean |
equals(Object o) |
com.vividsolutions.jts.geom.Envelope |
expandEnvelope(com.vividsolutions.jts.geom.Envelope env) |
com.vividsolutions.jts.geom.Coordinate |
getCoordinate(int i) |
void |
getCoordinate(int index,
com.vividsolutions.jts.geom.Coordinate coord) |
double |
getCoordinate(int position,
CoordinateComponent component)
Returns the specified coordinate for the
Point at the specified position in this PointCollection. |
com.vividsolutions.jts.geom.Coordinate |
getCoordinateCopy(int i) |
int |
getCoordinateDimension()
Returns the coordinate dimension of this
PointCollection. |
void |
getCoordinates(double[] coordinates,
int index)
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. |
int |
getDimension() |
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 |
getOrdinate(int index,
int ordinateIndex) |
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. |
Iterator<Point> |
iterator() |
void |
setOrdinate(int index,
int ordinateIndex,
double value) |
int |
size()
Returns the number of
Points contained in this PointCollection. |
com.vividsolutions.jts.geom.Coordinate[] |
toCoordinateArray() |
String |
toString() |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final EmptyPointSequence INSTANCE
public boolean is3D()
PointCollectionPoints in this instance have a Z-coordinate.is3D in interface PointCollectionPoints in this instance have a Z-coordinate.public boolean isMeasured()
PointCollectionPoints in this instance have an M-coordinate.isMeasured in interface PointCollectionPoints in this instance have an M-coordinate.public DimensionalFlag getDimensionalFlag()
PointCollectionDimensionalFlag of this PointCollection.getDimensionalFlag in interface PointCollectionDimensionalFlag of this PointCollectionpublic CrsId getCrsId()
PointCollectionCrsId of this PointCollection.getCrsId in interface PointCollectionCrsId of this PointCollection.public boolean isEmpty()
PointCollectionPointCollection contains no PointsisEmpty in interface PointCollectionPointCollection contains no Pointspublic int getCoordinateDimension()
PointCollectionPointCollection.
The coordinate dimension is number of measurements or axes needed to describe a position of a Point
in a coordinate system.
getCoordinateDimension in interface PointCollectionPointCollectionpublic void getCoordinates(double[] coordinates,
int index)
PointCollectionPoint at the specified (zero-based) position in this PointCollection
into the specified coordinate array.getCoordinates in interface PointCollectioncoordinates - an array for the coordinates of the Point at the specified positionindex - the position of the Point in this PointCollection whose coordinates
are copied into the coordinates arraypublic int getDimension()
getDimension in interface com.vividsolutions.jts.geom.CoordinateSequencepublic com.vividsolutions.jts.geom.Coordinate getCoordinate(int i)
getCoordinate in interface com.vividsolutions.jts.geom.CoordinateSequencepublic com.vividsolutions.jts.geom.Coordinate getCoordinateCopy(int i)
getCoordinateCopy in interface com.vividsolutions.jts.geom.CoordinateSequencepublic void getCoordinate(int index,
com.vividsolutions.jts.geom.Coordinate coord)
getCoordinate in interface com.vividsolutions.jts.geom.CoordinateSequencepublic double getX(int position)
PointCollectionPoint at the specified position in this PointCollection.getX in interface com.vividsolutions.jts.geom.CoordinateSequencegetX in interface PointCollectionposition - position of the Point in this PointCollectionPointpublic double getY(int position)
PointCollectionPoint at the specified position in this PointCollection.getY in interface com.vividsolutions.jts.geom.CoordinateSequencegetY in interface PointCollectionposition - position of the Point in this PointCollectionPointpublic double getOrdinate(int index,
int ordinateIndex)
getOrdinate in interface com.vividsolutions.jts.geom.CoordinateSequencepublic double getCoordinate(int position,
CoordinateComponent component)
PointCollectionPoint at the specified position in this PointCollection.getCoordinate in interface PointCollectionposition - position of the Point in this PointCollectioncomponent - the coordinate component for which to return the coordinatePointpublic double getZ(int position)
PointCollectionPoint at the specified position in this PointCollection.getZ in interface PointCollectionposition - position of the Point in this PointCollectionPointpublic double getM(int position)
PointCollectionPoint at the specified position in this PointCollection.getM in interface PointCollectionposition - position of the Point in this PointCollectionPointpublic int size()
PointCollectionPoints contained in this PointCollection.size in interface com.vividsolutions.jts.geom.CoordinateSequencesize in interface PointCollectionPoints contained in this PointCollection.public void setOrdinate(int index,
int ordinateIndex,
double value)
setOrdinate in interface com.vividsolutions.jts.geom.CoordinateSequencepublic com.vividsolutions.jts.geom.Coordinate[] toCoordinateArray()
toCoordinateArray in interface com.vividsolutions.jts.geom.CoordinateSequencepublic com.vividsolutions.jts.geom.Envelope expandEnvelope(com.vividsolutions.jts.geom.Envelope env)
expandEnvelope in interface com.vividsolutions.jts.geom.CoordinateSequencepublic EmptyPointSequence clone()
clone in interface com.vividsolutions.jts.geom.CoordinateSequenceclone in interface PointSequenceclone in class Objectpublic void accept(PointVisitor visitor)
PointCollectionPointVisitor.
This instance will pass the visitor to all of its Points.
accept in interface PointCollectionvisitor - the visitor for this instance's PointsCopyright © 2015 geolatte.org. All rights reserved.