createPolygonSeq method

Polygon createPolygonSeq(
  1. CoordinateSequence 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 createPolygonSeq(CoordinateSequence shell) {
  return createPolygonFromRing(createLinearRingSeq(shell));
}