validateConstruction method
void
validateConstruction()
Implementation
void validateConstruction() {
if (!isEmpty() && !super.isClosed()) {
throw new ArgumentError(
"Points of LinearRing do not form a closed linestring");
}
if (getCoordinateSequence().size() >= 1 &&
getCoordinateSequence().size() < MINIMUM_VALID_SIZE) {
throw new ArgumentError(
"Invalid number of points in LinearRing (found ${getCoordinateSequence().size()} - must be 0 or >= 4)");
}
}