private Polygon createPolygon ( double [ ] [ ] [ ] coordinates , CrsId crsId ) { LinearRing [ ] rings = new LinearRing [ coordinates . length ] ; for ( int i = 0 ; i < coordinates . length ; i ++ ) { rings [ i ] = new LinearRing ( createPointSequence ( coordinates [ i ] , crsId ) ) ; } return new Polygon ( rings ) ; }
Creates a polygon starting from its geojson coordinate array