public static MultiPolygon readMultiPolygon ( ByteReader reader , boolean hasZ , boolean hasM ) { MultiPolygon multiPolygon = new MultiPolygon ( hasZ , hasM ) ; int numPolygons = reader . readInt ( ) ; for ( int i = 0 ; i < numPolygons ; i ++ ) { Polygon polygon = readGeometry ( reader , Polygon . class ) ; multiPolygon . addPolygon ( polygon ) ; } return multiPolygon ; }
Read a Multi Polygon