public static Polygon polygon ( final LineString exteriorBoundary , final LineString ... interiorBoundaries ) { ensurePolygonIsClosed ( exteriorBoundary ) ; for ( final LineString boundary : interiorBoundaries ) { ensurePolygonIsClosed ( boundary ) ; } return new Polygon ( exteriorBoundary , interiorBoundaries ) ; }
Lets you create a Polygon representing a GeoJSON Polygon type . This method is especially useful for defining polygons with inner rings .