/** * Writes a Polygon as GeoJSON. * * @param poly The polygon. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writePolygon(Polygon poly, Object output) throws IOException { encode(createPolygon(poly), output); }
/** * Writes a MultiPolygon as GeoJSON. * * @param mpoly The multi polygon. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writeMultiPolygon(MultiPolygon mpoly, Object output) throws IOException { encode(createMultiPolygon(mpoly), output); }
/** * Writes a MultiLineString as GeoJSON. * * @param mline The multi line string. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writeMultiLine(MultiLineString mline, Object output) throws IOException { encode(createMultiLine(mline), output); }
/** * Writes a Point as GeoJSON. * * @param point The point. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. * @throws IOException In the event of a parsing error or if the input json is invalid. */ public void writePoint(Point point, Object output) throws IOException { encode(createPoint(point), output); }
/** * Writes a LineString as GeoJSON. * * @param line The line string. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writeLine(LineString line, Object output) throws IOException { encode(createLine(line), output); }
/** * Writes a MultiPoint as GeoJSON. * * @param mpoint The multi point. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writeMultiPoint(MultiPoint mpoint, Object output) throws IOException { encode(createMultiPoint(mpoint), output); }
/** * Writes a GeometryCollection as GeoJSON. * * @param gcol The geometry collection. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writeGeometryCollection(GeometryCollection gcol, Object output) throws IOException { encode(createGeometryCollection(gcol), output); }
/** * Writes a MultiLineString as GeoJSON. * * @param mline The multi line string. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writeMultiLine(MultiLineString mline, Object output) throws IOException { encode(createMultiLine(mline), output); }
/** * Writes a Point as GeoJSON. * * @param point The point. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. * * @throws IOException In the event of a parsing error or if the input json is invalid. */ public void writePoint(Point point, Object output) throws IOException { encode(createPoint(point), output); }
/** * Writes a MultiPolygon as GeoJSON. * * @param mpoly The multi polygon. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writeMultiPolygon(MultiPolygon mpoly, Object output) throws IOException { encode(createMultiPolygon(mpoly), output); }
/** * Writes a Polygon as GeoJSON. * * @param poly The polygon. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writePolygon(Polygon poly, Object output) throws IOException { encode(createPolygon(poly), output); }
/** * Writes a GeometryCollection as GeoJSON. * * @param gcol The geometry collection. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writeGeometryCollection(GeometryCollection gcol, Object output) throws IOException { encode(createGeometryCollection(gcol), output); }
/** * Writes a LineString as GeoJSON. * * @param line The line string. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writeLine(LineString line, Object output) throws IOException { encode(createLine(line), output); }
/** * Writes a MultiPoint as GeoJSON. * * @param mpoint The multi point. * @param output The output. See {@link GeoJSONUtil#toWriter(Object)} for details. */ public void writeMultiPoint(MultiPoint mpoint, Object output) throws IOException { encode(createMultiPoint(mpoint), output); }