A
CoordinateSequence backed by an array of
Coordinates. This is the implementation that
Geometrys use by default. Coordinates returned by #toArray and #getCoordinate are live -- modifications to them are actually changing the CoordinateSequence's underlying data. A dimension may be specified for the coordinates in the sequence, which may be 2 or 3. The actual coordinates will always have 3 ordinates, but the dimension is useful as metadata in some situations.
Other
version: 1.7
public CoordinateArraySequence(Coordinate[] coordinates)
Constructs a sequence based on the given array of
Coordinates (the array is not copied). The coordinate dimension defaults to 3.
Parameters:
coordinates - coordinates the coordinate array that will be referenced.
public CoordinateArraySequence(Coordinate[] coordinates, int dimension)
Constructs a sequence based on the given array of
Coordinates (the array is not copied).
Parameters:
coordinates - coordinates the coordinate array that will be referenced.
dimension - dimension the dimension of the coordinates
public CoordinateArraySequence(Coordinate[] coordinates, int dimension, int measures)
Constructs a sequence based on the given array of
Coordinates (the array is not copied).