Class PackedCoordinateSequence.Double

Hierarchy: Object , PackedCoordinateSequence, PackedCoordinateSequence.Double
All Implemented Interfaces: Cloneable , CoordinateSequence, Serializable
public static class PackedCoordinateSequence.Double
extends PackedCoordinateSequence
Packed coordinate sequence implementation based on doubles
public Double(double[] coords, int dimension, int measures)
Builds a new packed coordinate sequence
Parameters:
coords - coords an array of double values that contains the ordinate values of the sequence
dimension - dimension the total number of ordinates that make up a Coordinate in this sequence.
measures - measures the number of measure-ordinates each Coordinate in this sequence has.
public Double(float[] coords, int dimension, int measures)
Builds a new packed coordinate sequence out of a float coordinate array
Parameters:
coords - coords an array of float values that contains the ordinate values of the sequence
dimension - dimension the total number of ordinates that make up a Coordinate in this sequence.
measures - measures the number of measure-ordinates each Coordinate in this sequence has.
public Double(Coordinate[] coordinates, int dimension)
Builds a new packed coordinate sequence out of a coordinate array
Parameters:
coordinates - coordinates an array of Coordinates
dimension - dimension the total number of ordinates that make up a Coordinate in this sequence.
public Double(Coordinate[] coordinates, int dimension, int measures)
Builds a new packed coordinate sequence out of a coordinate array
Parameters:
coordinates - coordinates an array of Coordinates
dimension - dimension the total number of ordinates that make up a Coordinate in this sequence.
measures - measures the number of measure-ordinates each Coordinate in this sequence has.
public Double(Coordinate[] coordinates)
Builds a new packed coordinate sequence out of a coordinate array
Parameters:
coordinates - coordinates an array of Coordinates
public Double(int size, int dimension, int measures)
Builds a new empty packed coordinate sequence of a given size and dimension
Parameters:
size - size the number of coordinates in this sequence
dimension - dimension the total number of ordinates that make up a Coordinate in this sequence.
measures - measures the number of measure-ordinates each Coordinate in this sequence has.
public Coordinate getCoordinateInternal(int i)
See also:
PackedCoordinateSequence#getCoordinate(int)
public double[] getRawCoordinates()
Gets the underlying array containing the coordinate values.
Returns:
the array of coordinate values
public int size()
See also:
CoordinateSequence#size()
public Object clone()
See also:
java.lang.Object#clone()
PackedCoordinateSequence#clone()
public Double copy()
See also:
PackedCoordinateSequence#size()
public double getOrdinate(int index, int ordinate)
See also:
PackedCoordinateSequence#getOrdinate(int, int) 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)
See also:
PackedCoordinateSequence#setOrdinate(int, int, double)
public Envelope expandEnvelope(Envelope env)
See also:
CoordinateSequence#expandEnvelope(Envelope)