@Override
  public void setOrdinate(int index, int ordinate, double value) {
    int idx = index * components + ordinate;
    int cnt = (index + 1) * components;
    points.elementsCount = Math.max(points.elementsCount, cnt);
    points.ensureCapacity(cnt);
    points.set(idx, value);
  }
A mutable {@link CoordinateSequence} that grows to fit new elements when {@code set*} methods are called.
planetiler-core/src/main/java/com/onthegomap/planetiler/reader/parquet/CoordinateSequenceBuilder.java