createSizeDim method
The created sequence dimension is clamped to be <= 3.
@see org.locationtech.jts.geom.CoordinateSequenceFactory#create(int, int)
Implementation
CoordinateSequence createSizeDim(int size, int dimension) {
if (dimension > 3) dimension = 3;
//throw IllegalArgumentException("dimension must be <= 3");
// handle bogus dimension
if (dimension < 2) dimension = 2;
return CoordinateArraySequence.fromSizeDimension(size, dimension);
}