createPolygonFromRing method

Polygon createPolygonFromRing(
  1. LinearRing? 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 createPolygonFromRing(LinearRing? shell) {
  return createPolygon(shell, null);
}