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
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. |
Iterator<Point> |
iterator() |
void |
setOrdinate(int index,
int ordinateIndex,
double value) |
int |
size()
Returns the number of
Point s contained in this PointCollection . |
com.vividsolutions.jts.geom.Coordinate[] |
toCoordinateArray() |
String |
toString() |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final EmptyPointSequence INSTANCE
public boolean is3D()
PointCollection
Point
s in this instance have a Z-coordinate.is3D
in interface PointCollection
Point
s in this instance have a Z-coordinate.public boolean isMeasured()
PointCollection
Point
s in this instance have an M-coordinate.isMeasured
in interface PointCollection
Point
s in this instance have an M-coordinate.public DimensionalFlag getDimensionalFlag()
PointCollection
DimensionalFlag
of this PointCollection
.getDimensionalFlag
in interface PointCollection
DimensionalFlag
of this PointCollection
public CrsId getCrsId()
PointCollection
CrsId
of this PointCollection
.getCrsId
in interface PointCollection
CrsId
of this PointCollection
.public boolean isEmpty()
PointCollection
PointCollection
contains no Point
sisEmpty
in interface PointCollection
PointCollection
contains no Point
spublic int getCoordinateDimension()
PointCollection
PointCollection
.
The coordinate dimension is number of measurements or axes needed to describe a position of a Point
in a coordinate system.
getCoordinateDimension
in interface PointCollection
PointCollection
public void getCoordinates(double[] coordinates, int index)
PointCollection
Point
at the specified (zero-based) position in this PointCollection
into the specified coordinate array.getCoordinates
in interface PointCollection
coordinates
- 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.CoordinateSequence
public com.vividsolutions.jts.geom.Coordinate getCoordinate(int i)
getCoordinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public com.vividsolutions.jts.geom.Coordinate getCoordinateCopy(int i)
getCoordinateCopy
in interface com.vividsolutions.jts.geom.CoordinateSequence
public void getCoordinate(int index, com.vividsolutions.jts.geom.Coordinate coord)
getCoordinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public double getX(int position)
PointCollection
Point
at the specified position in this PointCollection
.getX
in interface com.vividsolutions.jts.geom.CoordinateSequence
getX
in interface PointCollection
position
- position of the Point
in this PointCollection
Point
public double getY(int position)
PointCollection
Point
at the specified position in this PointCollection
.getY
in interface com.vividsolutions.jts.geom.CoordinateSequence
getY
in interface PointCollection
position
- position of the Point
in this PointCollection
Point
public double getOrdinate(int index, int ordinateIndex)
getOrdinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public double getCoordinate(int position, CoordinateComponent component)
PointCollection
Point
at the specified position in this PointCollection
.getCoordinate
in interface PointCollection
position
- position of the Point
in this PointCollection
component
- the coordinate component for which to return the coordinatePoint
public double getZ(int position)
PointCollection
Point
at the specified position in this PointCollection
.getZ
in interface PointCollection
position
- position of the Point
in this PointCollection
Point
public double getM(int position)
PointCollection
Point
at the specified position in this PointCollection
.getM
in interface PointCollection
position
- position of the Point
in this PointCollection
Point
public int size()
PointCollection
Point
s contained in this PointCollection
.size
in interface com.vividsolutions.jts.geom.CoordinateSequence
size
in interface PointCollection
Point
s contained in this PointCollection
.public void setOrdinate(int index, int ordinateIndex, double value)
setOrdinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public com.vividsolutions.jts.geom.Coordinate[] toCoordinateArray()
toCoordinateArray
in interface com.vividsolutions.jts.geom.CoordinateSequence
public com.vividsolutions.jts.geom.Envelope expandEnvelope(com.vividsolutions.jts.geom.Envelope env)
expandEnvelope
in interface com.vividsolutions.jts.geom.CoordinateSequence
public EmptyPointSequence clone()
clone
in interface com.vividsolutions.jts.geom.CoordinateSequence
clone
in interface PointSequence
clone
in class Object
public void accept(PointVisitor visitor)
PointCollection
PointVisitor
.
This instance will pass the visitor to all of its Point
s.
accept
in interface PointCollection
visitor
- the visitor for this instance's Point
sCopyright © 2015 geolatte.org. All rights reserved.