/** * Reads a MultiPolygon from GeoJSON. * * <p>This method calls through to {@link #readMultiPolygon(Object)} * * @param input The input stream. * @return The multi polygon. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public MultiPolygon readMultiPolygon(InputStream input) throws IOException { return readMultiPolygon((Object) input); }
/** * Reads a MultiPolygon from GeoJSON. * <p> * This method calls through to {@link #readMultiPolygon(Object)} * </p> * @param input The input stream. * * @return The multi polygon. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public MultiPolygon readMultiPolygon(InputStream input) throws IOException { return readMultiPolygon((Object)input); }
MultiPolygon multiPolygon = gtjson.readMultiPolygon( new StringReader( "{\"type\":\"MultiPolygon\", \"coordinates\":" + multiPolygonJson + "}" ) );