public class AxisPlaneCoordinateSequence extends Object implements CoordinateSequence
M, X, Y, Z| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a deep copy of this collection.
|
AxisPlaneCoordinateSequence |
copy()
Returns a deep copy of this collection.
|
Envelope |
expandEnvelope(Envelope env)
Expands the given
Envelope to include the coordinates in the sequence. |
Coordinate |
getCoordinate(int i)
Returns (possibly a copy of) the i'th coordinate in this sequence.
|
void |
getCoordinate(int index,
Coordinate coord)
Copies the i'th coordinate in the sequence to the supplied
Coordinate. |
Coordinate |
getCoordinateCopy(int i)
Returns a copy of the i'th coordinate in this sequence.
|
int |
getDimension()
Returns the dimension (number of ordinates in each coordinate) for this sequence.
|
double |
getOrdinate(int index,
int ordinateIndex)
Returns the ordinate of a coordinate in this sequence.
|
double |
getX(int index)
Returns ordinate X (0) of the specified coordinate.
|
double |
getY(int index)
Returns ordinate Y (1) of the specified coordinate.
|
double |
getZ(int index)
Returns ordinate Z of the specified coordinate if available.
|
static CoordinateSequence |
projectToXY(CoordinateSequence seq)
Creates a wrapper projecting to the XY plane.
|
static CoordinateSequence |
projectToXZ(CoordinateSequence seq)
Creates a wrapper projecting to the XZ plane.
|
static CoordinateSequence |
projectToYZ(CoordinateSequence seq)
Creates a wrapper projecting to the YZ plane.
|
void |
setOrdinate(int index,
int ordinateIndex,
double value)
Sets the value for a given ordinate of a coordinate in this sequence.
|
int |
size()
Returns the number of coordinates in this sequence.
|
Coordinate[] |
toCoordinateArray()
Returns (possibly copies of) the Coordinates in this collection.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCoordinate, getM, getMeasures, hasM, hasZpublic static CoordinateSequence projectToXY(CoordinateSequence seq)
seq - the sequence to be projectedpublic static CoordinateSequence projectToXZ(CoordinateSequence seq)
seq - the sequence to be projectedpublic static CoordinateSequence projectToYZ(CoordinateSequence seq)
seq - the sequence to be projectedpublic int getDimension()
CoordinateSequenceThis total includes any measures, indicated by non-zero CoordinateSequence.getMeasures().
getDimension in interface CoordinateSequencepublic Coordinate getCoordinate(int i)
CoordinateSequenceNote that in the future the semantics of this method may change to guarantee that the Coordinate returned is always a copy. Callers should not to assume that they can modify a CoordinateSequence by modifying the object returned by this method.
getCoordinate in interface CoordinateSequencei - the index of the coordinate to retrievepublic Coordinate getCoordinateCopy(int i)
CoordinateSequencegetCoordinateCopy in interface CoordinateSequencei - the index of the coordinate to retrievepublic void getCoordinate(int index,
Coordinate coord)
CoordinateSequenceCoordinate. Only the first two dimensions are copied.getCoordinate in interface CoordinateSequenceindex - the index of the coordinate to copycoord - a Coordinate to receive the valuepublic double getX(int index)
CoordinateSequencegetX in interface CoordinateSequenceindex - the coordinate index in the sequencepublic double getY(int index)
CoordinateSequencegetY in interface CoordinateSequenceindex - the coordinate index in the sequencepublic double getZ(int index)
CoordinateSequencegetZ in interface CoordinateSequenceindex - the coordinate index in the sequencepublic double getOrdinate(int index,
int ordinateIndex)
CoordinateSequence
Ordinates indices greater than 1 have user-defined semantics
(for instance, they may contain other dimensions or measure
values as described by CoordinateSequence.getDimension() and CoordinateSequence.getMeasures()).
getOrdinate in interface CoordinateSequenceindex - the coordinate index in the sequenceordinateIndex - the ordinate index in the coordinate (in range [0, dimension-1])public int size()
CoordinateSequencesize in interface CoordinateSequencepublic void setOrdinate(int index,
int ordinateIndex,
double value)
CoordinateSequencesetOrdinate in interface CoordinateSequenceindex - the coordinate index in the sequenceordinateIndex - the ordinate index in the coordinate (in range [0, dimension-1])value - the new ordinate valuepublic Coordinate[] toCoordinateArray()
CoordinateSequencetoCoordinateArray in interface CoordinateSequencepublic Envelope expandEnvelope(Envelope env)
CoordinateSequenceEnvelope to include the coordinates in the sequence.
Allows implementing classes to optimize access to coordinate values.expandEnvelope in interface CoordinateSequenceenv - the envelope to expandpublic Object clone()
CoordinateSequenceclone in interface CoordinateSequenceclone in class Objectpublic AxisPlaneCoordinateSequence copy()
CoordinateSequencecopy in interface CoordinateSequenceCopyright © 2024. All rights reserved.