public Coordinate [ ] getCoordinates ( ) { if ( isEmpty ( ) ) { return null ; } Coordinate [ ] coordinates = new Coordinate [ getNumPoints ( ) ] ; int count = 0 ; for ( Polygon polygon : polygons ) { Coordinate [ ] polyCoords = polygon . getCoordinates ( ) ; for ( Coordinate polyCoord : polyCoords ) { coordinates [ count ++ ] = polyCoord ; } } return coordinates ; }
Return the concatenated array of all coordinates of all polygons in this MultiPolygon geometry .