/** * Reads a GeometryCollection from GeoJSON. * * <p>This method calls through to {@link #readGeometryCollection(Object)} * * @param input The input stream. * @return The geometry collection. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public GeometryCollection readGeometryCollection(InputStream input) throws IOException { return readGeometryCollection((Object) input); }
/** * Reads a GeometryCollection from GeoJSON. * <p> * This method calls through to {@link #readGeometryCollection(Object)} * </p> * @param input The input stream. * * @return The geometry collection. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public GeometryCollection readGeometryCollection(InputStream input) throws IOException { return readGeometryCollection((Object)input); }
GeometryCollection g = new GeometryJSON().readGeometryCollection(geojsonstring);