createLinearRing method
Creates a {@link LinearRing} using the given {@link Coordinate}s. A null or empty array creates an empty LinearRing. The points must form a closed and simple linestring. @param coordinates an array without null elements, or an empty array, or null @return the created LinearRing @throws IllegalArgumentException if the ring is not closed, or has too few points
Implementation
LinearRing createLinearRing(List<Coordinate>? coordinates) {
return createLinearRingSeq(coordinates != null
? getCoordinateSequenceFactory().create(coordinates)
: null);
}