abstract class AbstractPositionSequence<P extends Position> extends java.lang.Object implements PositionSequence<P>, org.locationtech.jts.geom.CoordinateSequence, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
private static class |
AbstractPositionSequence.EnvelopeExpander<P extends Position> |
| Modifier and Type | Field and Description |
|---|---|
private PositionFactory<P> |
factory |
| Constructor and Description |
|---|
AbstractPositionSequence(PositionFactory<P> factory) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
accept(PositionVisitor<P> visitor)
Accepts a
PositionVisitor. |
abstract PositionSequence<P> |
clone()
Clones a PointCollection
|
org.locationtech.jts.geom.CoordinateSequence |
copy() |
org.locationtech.jts.geom.Envelope |
expandEnvelope(org.locationtech.jts.geom.Envelope envelope) |
org.locationtech.jts.geom.Coordinate |
getCoordinate(int i) |
void |
getCoordinate(int index,
org.locationtech.jts.geom.Coordinate coord) |
org.locationtech.jts.geom.Coordinate |
getCoordinateCopy(int i) |
int |
getCoordinateDimension()
Returns the coordinate dimension of this
PositionSequence. |
int |
getDimension() |
double |
getOrdinate(int i,
int ordinateIndex) |
java.lang.Class<P> |
getPositionClass() |
PositionFactory<P> |
getPositionFactory() |
P |
getPositionN(int index) |
double |
getX(int index) |
double |
getY(int index) |
abstract void |
setOrdinate(int i,
int ordinateIndex,
double value) |
org.locationtech.jts.geom.Coordinate[] |
toCoordinateArray() |
private static org.locationtech.jts.geom.Coordinate[] |
toCoordinateArray(AbstractPositionSequence cseq) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, getCoordinates, isEmpty, reverse, sizeprivate final PositionFactory<P extends Position> factory
public AbstractPositionSequence(PositionFactory<P> factory)
private static org.locationtech.jts.geom.Coordinate[] toCoordinateArray(AbstractPositionSequence cseq)
public java.lang.Class<P> getPositionClass()
getPositionClass in interface PositionSequence<P extends Position>public PositionFactory<P> getPositionFactory()
getPositionFactory in interface PositionSequence<P extends Position>public P getPositionN(int index)
getPositionN in interface PositionSequence<P extends Position>public int getDimension()
getDimension in interface org.locationtech.jts.geom.CoordinateSequencepublic int getCoordinateDimension()
PositionSequencePositionSequence.
The coordinate dimension is number of measurements or axes needed to describe Position
in the coordinate system associated with this PositionSequence.
getCoordinateDimension in interface PositionSequence<P extends Position>PositionSequencepublic abstract PositionSequence<P> clone()
This method is defined in the JTS CoordinateSequence interface.
clone in interface PositionSequence<P extends Position>clone in interface org.locationtech.jts.geom.CoordinateSequenceclone in class java.lang.Objectpublic org.locationtech.jts.geom.CoordinateSequence copy()
copy in interface org.locationtech.jts.geom.CoordinateSequencepublic org.locationtech.jts.geom.Coordinate getCoordinate(int i)
getCoordinate in interface org.locationtech.jts.geom.CoordinateSequencepublic org.locationtech.jts.geom.Coordinate getCoordinateCopy(int i)
getCoordinateCopy in interface org.locationtech.jts.geom.CoordinateSequencepublic void getCoordinate(int index,
org.locationtech.jts.geom.Coordinate coord)
getCoordinate in interface org.locationtech.jts.geom.CoordinateSequencepublic double getX(int index)
getX in interface org.locationtech.jts.geom.CoordinateSequencepublic double getY(int index)
getY in interface org.locationtech.jts.geom.CoordinateSequencepublic double getOrdinate(int i,
int ordinateIndex)
getOrdinate in interface org.locationtech.jts.geom.CoordinateSequencepublic abstract void setOrdinate(int i,
int ordinateIndex,
double value)
setOrdinate in interface org.locationtech.jts.geom.CoordinateSequencepublic org.locationtech.jts.geom.Coordinate[] toCoordinateArray()
toCoordinateArray in interface org.locationtech.jts.geom.CoordinateSequencepublic org.locationtech.jts.geom.Envelope expandEnvelope(org.locationtech.jts.geom.Envelope envelope)
expandEnvelope in interface org.locationtech.jts.geom.CoordinateSequencepublic abstract void accept(PositionVisitor<P> visitor)
PositionSequencePositionVisitor.
This instance will pass the visitor to all of its Positions.
accept in interface PositionSequence<P extends Position>visitor - the visitor for this instance's Positions