CoordinateArraySequence constructor

CoordinateArraySequence(
  1. List<Coordinate> coordinates
)

Constructs a sequence based on the given array of {@link Coordinate}s (the array is not copied). The coordinate dimension defaults to 3.

@param coordinates the coordinate array that will be referenced.

Implementation

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