CoordinateArraySequence.withDimensionMeasures constructor

CoordinateArraySequence.withDimensionMeasures(
  1. List<Coordinate>? coordinates,
  2. int dimension,
  3. int measures
)

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.withDimensionMeasures(
    this.coordinates, int dimension, int measures) {
  this.dimension = dimension;
  this.measures = measures;
  if (coordinates == null) {
    this.coordinates = [];
  }
  enforceArrayConsistency(this.coordinates!);
}