/** * Reads a MultiLineString from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * @return The multi line string. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public MultiLineString readMultiLine(Object input) throws IOException { return parse(new MultiLineHandler(factory), input); }
/** * Reads a LineString from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * @return The line string. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public LineString readLine(Object input) throws IOException { return parse(new LineHandler(factory), input); }
/** * Reads a Point from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * @return The point. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public Point readPoint(Object input) throws IOException { return parse(new PointHandler(factory), input); }
/** * Reads a MultiPoint from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * @return The multi point. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public MultiPoint readMultiPoint(Object input) throws IOException { return parse(new MultiPointHandler(factory), input); }
/** * Reads a Geometry instance from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * @return The geometry instance. */ public Geometry read(Object input) throws IOException { return parse(new GeometryHandler(factory), input); }
/** * Reads a Polygon from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * @return The polygon. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public Polygon readPolygon(Object input) throws IOException { return parse(new PolygonHandler(factory), input); }
/** * Reads a MultiPolygon from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * @return The multi polygon. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public MultiPolygon readMultiPolygon(Object input) throws IOException { return parse(new MultiPolygonHandler(factory), input); }
/** * Reads a GeometryCollection from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * @return The geometry collection. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public GeometryCollection readGeometryCollection(Object input) throws IOException { return parse(new GeometryCollectionHandler(factory), input); }
/** * Reads a GeometryCollection from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * * @return The geometry collection. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public GeometryCollection readGeometryCollection(Object input) throws IOException { return parse(new GeometryCollectionHandler(factory), input); }
/** * Reads a MultiPoint from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * * @return The multi point. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public MultiPoint readMultiPoint(Object input) throws IOException { return parse(new MultiPointHandler(factory), input); }
/** * Reads a Geometry instance from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * * @return The geometry instance. */ public Geometry read(Object input) throws IOException { return parse(new GeometryHandler(factory), input); }
/** * Reads a LineString from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * * @return The line string. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public LineString readLine(Object input) throws IOException { return parse(new LineHandler(factory), input); }
/** * Reads a MultiPolygon from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * * @return The multi polygon. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public MultiPolygon readMultiPolygon(Object input) throws IOException { return parse(new MultiPolygonHandler(factory), input); }
/** * Reads a Point from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * * @return The point. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public Point readPoint(Object input) throws IOException { return parse(new PointHandler(factory), input); }
/** * Reads a Polygon from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * * @return The polygon. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public Polygon readPolygon(Object input) throws IOException { return parse(new PolygonHandler(factory), input); }
/** * Reads a MultiLineString from GeoJSON. * * @param input The input. See {@link GeoJSONUtil#toReader(Object)} for details. * * @return The multi line string. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public MultiLineString readMultiLine(Object input) throws IOException { return parse(new MultiLineHandler(factory), input); }