class DefaultCoordinateSequence extends java.lang.Object implements CoordinateSequence, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private Coordinate[] |
coordinates
Deprecated.
|
private static long |
serialVersionUID
Deprecated.
|
M, X, Y, Z| Constructor and Description |
|---|
DefaultCoordinateSequence(Coordinate[] coordinates)
Deprecated.
Constructs a DefaultCoordinateSequence based on the given array (the
array is not copied).
|
DefaultCoordinateSequence(CoordinateSequence coordSeq)
Deprecated.
Creates a new sequence based on a deep copy of the given
CoordinateSequence. |
DefaultCoordinateSequence(int size)
Deprecated.
Constructs a sequence of a given size, populated
with new
Coordinates. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Deprecated.
|
DefaultCoordinateSequence |
copy()
Deprecated.
Creates a deep copy of the DefaultCoordinateSequence
|
Envelope |
expandEnvelope(Envelope env)
Deprecated.
Expands the given
Envelope to include the coordinates in the sequence. |
Coordinate |
getCoordinate(int i)
Deprecated.
Get the Coordinate with index i.
|
void |
getCoordinate(int index,
Coordinate coord)
Deprecated.
Copies the i'th coordinate in the sequence to the supplied
Coordinate. |
Coordinate |
getCoordinateCopy(int i)
Deprecated.
Get a copy of the Coordinate with index i.
|
int |
getDimension()
Deprecated.
Returns the dimension (number of ordinates in each coordinate)
for this sequence.
|
double |
getOrdinate(int index,
int ordinateIndex)
Deprecated.
Returns the ordinate of a coordinate in this sequence.
|
double |
getX(int index)
Deprecated.
Returns ordinate X (0) of the specified coordinate.
|
double |
getY(int index)
Deprecated.
Returns ordinate Y (1) of the specified coordinate.
|
void |
setOrdinate(int index,
int ordinateIndex,
double value)
Deprecated.
Sets the value for a given ordinate of a coordinate in this sequence.
|
int |
size()
Deprecated.
Returns the size of the coordinate sequence
|
Coordinate[] |
toCoordinateArray()
Deprecated.
This method exposes the internal Array of Coordinate Objects
|
java.lang.String |
toString()
Deprecated.
Returns the string Representation of the coordinate array
|
private static final long serialVersionUID
private Coordinate[] coordinates
public DefaultCoordinateSequence(Coordinate[] coordinates)
coordinates - the coordinate array that will be referenced.public DefaultCoordinateSequence(CoordinateSequence coordSeq)
CoordinateSequence.coordSeq - the coordinate sequence that will be copied.public DefaultCoordinateSequence(int size)
Coordinates.size - the size of the sequence to createpublic int getDimension()
CoordinateSequencegetDimension in interface CoordinateSequenceCoordinateSequence.getDimension()public Coordinate getCoordinate(int i)
getCoordinate in interface CoordinateSequencei - the index of the coordinatepublic Coordinate getCoordinateCopy(int i)
getCoordinateCopy in interface CoordinateSequencei - the index of the coordinatepublic 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 valueCoordinateSequence.getX(int)public double getX(int index)
CoordinateSequencegetX in interface CoordinateSequenceCoordinateSequence.getX(int)public double getY(int index)
CoordinateSequencegetY in interface CoordinateSequenceCoordinateSequence.getY(int)public double getOrdinate(int index,
int ordinateIndex)
CoordinateSequencegetOrdinate in interface CoordinateSequenceindex - the coordinate index in the sequenceordinateIndex - the ordinate index in the coordinate (in range [0, dimension-1])CoordinateSequence.getOrdinate(int, int)public 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 valueCoordinateSequence.setOrdinate(int, int, double)public java.lang.Object clone()
clone in interface CoordinateSequenceclone in class java.lang.Objectpublic DefaultCoordinateSequence copy()
copy in interface CoordinateSequencepublic int size()
size in interface CoordinateSequencepublic Coordinate[] toCoordinateArray()
toCoordinateArray 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 java.lang.String toString()
toString in class java.lang.Object