public static GeometryCollection < Geometry > readGeometryCollection ( ByteReader reader , boolean hasZ , boolean hasM ) { GeometryCollection < Geometry > geometryCollection = new GeometryCollection < Geometry > ( hasZ , hasM ) ; int numGeometries = reader . readInt ( ) ; for ( int i = 0 ; i < numGeometries ; i ++ ) { Geometry geometry = readGeometry ( reader , Geometry . class ) ; geometryCollection . addGeometry ( geometry ) ; } return geometryCollection ; }
Read a Geometry Collection