public static Polygon makePolygon ( Geometry shell ) throws IllegalArgumentException { if ( shell == null ) { return null ; } LinearRing outerLine = checkLineString ( shell ) ; return shell . getFactory ( ) . createPolygon ( outerLine , null ) ; }
Creates a Polygon formed by the given shell .