public static class PackedCoordinateSequence.Double extends PackedCoordinateSequence
PackedCoordinateSequence.Double, PackedCoordinateSequence.FloatM, X, Y, Z| Constructor and Description |
|---|
Double(Coordinate[] coordinates)
Builds a new packed coordinate sequence out of a coordinate array
|
Double(Coordinate[] coordinates,
int dimension)
Builds a new packed coordinate sequence out of a coordinate array
|
Double(Coordinate[] coordinates,
int dimension,
int measures)
Builds a new packed coordinate sequence out of a coordinate array
|
Double(double[] coords,
int dimension,
int measures)
Builds a new packed coordinate sequence
|
Double(float[] coords,
int dimension,
int measures)
Builds a new packed coordinate sequence out of a float coordinate array
|
Double(int size,
int dimension,
int measures)
Builds a new empty packed coordinate sequence of a given size and dimension
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Deprecated.
|
PackedCoordinateSequence.Double |
copy()
Returns a deep copy of this collection.
|
Envelope |
expandEnvelope(Envelope env)
Expands the given
Envelope to include the coordinates in the sequence. |
Coordinate |
getCoordinateInternal(int i)
Returns a Coordinate representation of the specified coordinate, by always
building a new Coordinate object
|
double |
getOrdinate(int index,
int ordinate)
Returns the ordinate of a coordinate in this sequence.
|
double[] |
getRawCoordinates()
Gets the underlying array containing the coordinate values.
|
void |
setOrdinate(int index,
int ordinate,
double value)
Sets the ordinate of a coordinate in this sequence.
|
int |
size()
Returns the number of coordinates in this sequence.
|
getCoordinate, getCoordinate, getCoordinateCopy, getDimension, getMeasures, getX, getY, setX, setY, toCoordinateArray, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateCoordinate, getM, getZ, hasM, hasZpublic Double(double[] coords,
int dimension,
int measures)
coords - an array of dimension - the total number of ordinates that make up a Coordinate in this sequence.measures - the number of measure-ordinates each Coordinate in this sequence has.public Double(float[] coords,
int dimension,
int measures)
coords - an array of dimension - the total number of ordinates that make up a Coordinate in this sequence.measures - the number of measure-ordinates each Coordinate in this sequence has.public Double(Coordinate[] coordinates, int dimension)
coordinates - an array of Coordinatesdimension - the total number of ordinates that make up a Coordinate in this sequence.public Double(Coordinate[] coordinates, int dimension, int measures)
coordinates - an array of Coordinatesdimension - the total number of ordinates that make up a Coordinate in this sequence.measures - the number of measure-ordinates each Coordinate in this sequence has.public Double(Coordinate[] coordinates)
coordinates - an array of Coordinatespublic Double(int size,
int dimension,
int measures)
size - the number of coordinates in this sequencedimension - the total number of ordinates that make up a Coordinate in this sequence.measures - the number of measure-ordinates each Coordinate in this sequence has.public Coordinate getCoordinateInternal(int i)
PackedCoordinateSequencei - the coordinate indexCoordinate at the given indexPackedCoordinateSequence.getCoordinate(int)public double[] getRawCoordinates()
public int size()
CoordinateSequenceCoordinateSequence.size()public Object clone()
CoordinateSequenceclone in interface CoordinateSequenceclone in class PackedCoordinateSequenceObject.clone(),
PackedCoordinateSequence.clone()public PackedCoordinateSequence.Double copy()
CoordinateSequencecopy in interface CoordinateSequencecopy in class PackedCoordinateSequenceCoordinateSequence.size()public double getOrdinate(int index,
int ordinate)
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 CoordinateSequencegetOrdinate in class PackedCoordinateSequenceindex - the coordinate index in the sequenceordinate - the ordinate index in the coordinate (in range [0, dimension-1])Beware, for performance reasons the ordinate index is not checked, if
it's over dimensions you may not get an exception but a meaningless
value.public void setOrdinate(int index,
int ordinate,
double value)
PackedCoordinateSequencesetOrdinate in interface CoordinateSequencesetOrdinate in class PackedCoordinateSequenceindex - the coordinate indexordinate - the ordinate index in the coordinate, 0 based, smaller than the
number of dimensionsvalue - the new ordinate valuePackedCoordinateSequence.setOrdinate(int, int, double)public Envelope expandEnvelope(Envelope env)
CoordinateSequenceEnvelope to include the coordinates in the sequence.
Allows implementing classes to optimize access to coordinate values.env - the envelope to expandCoordinateSequence.expandEnvelope(Envelope)Copyright © 2020. All rights reserved.