CoordinateArraySequence.withDimension constructor

CoordinateArraySequence.withDimension(
  1. List<Coordinate> coordinates,
  2. int dimension
)

Constructs a sequence based on the given array of {@link Coordinate}s (the array is not copied).

@param coordinates the coordinate array that will be referenced. @param dimension the dimension of the coordinates

Implementation

CoordinateArraySequence.withDimension(
    List<Coordinate> coordinates, int dimension)
    : this.withDimensionMeasures(
          coordinates, dimension, CoordinateArrays.measures(coordinates));