createPolygonFromCoords method

Polygon createPolygonFromCoords(
  1. List<Coordinate>? shell
)

Constructs a Polygon with the given exterior boundary.

@param shell the outer boundary of the new Polygon, or null or an empty LinearRing if the empty geometry is to be created. @throws IllegalArgumentException if the boundary ring is invalid

Implementation

Polygon createPolygonFromCoords(List<Coordinate>? shell) {
  return createPolygonFromRing(createLinearRing(shell));
}