public static void writeMultiPolygon ( ByteWriter writer , MultiPolygon multiPolygon ) throws IOException { writer . writeInt ( multiPolygon . numPolygons ( ) ) ; for ( Polygon polygon : multiPolygon . getPolygons ( ) ) { writeGeometry ( writer , polygon ) ; } }
Write a Multi Polygon