public static class PackedCoordinateSequence.Double extends PackedCoordinateSequence
PackedCoordinateSequence.Double , PackedCoordinateSequence.Float coordRef, dimensionM, X, Y, Z| Constructor and Description |
|---|
Double(Coordinate
Builds a new packed coordinate sequence out of a coordinate array
|
Double(Coordinate
Builds a new packed coordinate sequence out of a coordinate array
|
Double(double[] coords, int dimensions)
Builds a new packed coordinate sequence
|
Double(float[] coordinates, int dimensions)
Builds a new packed coordinate sequence out of a float coordinate array
|
Double(int size, int dimension)
Builds a new empty packed coordinate sequence of a given size and dimension
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a deep copy of this collection.
|
Envelope |
expandEnvelope(Envelope
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.
|
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, getX, getY, setX, setY, toCoordinateArraypublic Double(double[] coords,
int dimensions)
coords -
dimensions -
public Double(float[] coordinates,
int dimensions)
coordinates -
public Double(Coordinate[] coordinates, int dimension)
coordinates -
public Double(Coordinate[] coordinates)
coordinates -
public Double(int size,
int dimension)
coordinates -
public CoordinategetCoordinateInternal(int i)
PackedCoordinateSequence
getCoordinateInternal in class
PackedCoordinateSequence
CoordinateSequence.getCoordinate(int)
public int size()
CoordinateSequence
CoordinateSequence.size()
public Objectclone()
CoordinateSequence
clone in interface
CoordinateSequence
clone in class
PackedCoordinateSequence
Object.clone()
public double getOrdinate(int index,
int ordinate)
CoordinateSequence
getOrdinate in interface
CoordinateSequence
getOrdinate in class
PackedCoordinateSequence
index - the coordinate index in the sequence
ordinate - the ordinate index in the coordinate (in range [0, dimension-1])
Beware, for performace 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)
PackedCoordinateSequence
setOrdinate in interface
CoordinateSequence
setOrdinate in class
PackedCoordinateSequence
index - the coordinate index
ordinate - the ordinate index in the coordinate, 0 based, smaller than the number of dimensions
value - the new ordinate value
com.vividsolutions.jts.geom.PackedCoordinateSequence#setOrdinate(int, int, double)
public EnvelopeexpandEnvelope(Envelope env)
CoordinateSequence
Envelope to include the coordinates in the sequence. Allows implementing classes to optimize access to coordinate values.
env - the envelope to expand