Class JtsGeoJSONWriter
- java.lang.Object
-
- org.locationtech.spatial4j.io.GeoJSONWriter
-
- org.locationtech.spatial4j.io.jts.JtsGeoJSONWriter
-
- All Implemented Interfaces:
ShapeIO,ShapeWriter
public class JtsGeoJSONWriter extends GeoJSONWriter
-
-
Constructor Summary
Constructors Constructor Description JtsGeoJSONWriter(JtsSpatialContext ctx, SpatialContextFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidwrite(Writer output, NumberFormat nf, Coordinate coord)protected voidwrite(Writer output, NumberFormat nf, Coordinate[] coord)protected voidwrite(Writer output, NumberFormat nf, CoordinateSequence coordseq)protected voidwrite(Writer output, NumberFormat nf, Polygon p)voidwrite(Writer output, Geometry geom)voidwrite(Writer output, Shape shape)Write a shape to the output writer-
Methods inherited from class org.locationtech.spatial4j.io.GeoJSONWriter
getFormatName, toString, write
-
-
-
-
Field Detail
-
ctx
protected final JtsSpatialContext ctx
-
-
Constructor Detail
-
JtsGeoJSONWriter
public JtsGeoJSONWriter(JtsSpatialContext ctx, SpatialContextFactory factory)
-
-
Method Detail
-
write
protected void write(Writer output, NumberFormat nf, Coordinate coord) throws IOException
- Throws:
IOException
-
write
protected void write(Writer output, NumberFormat nf, CoordinateSequence coordseq) throws IOException
- Throws:
IOException
-
write
protected void write(Writer output, NumberFormat nf, Coordinate[] coord) throws IOException
- Throws:
IOException
-
write
protected void write(Writer output, NumberFormat nf, Polygon p) throws IOException
- Throws:
IOException
-
write
public void write(Writer output, Geometry geom) throws IOException
- Throws:
IOException
-
write
public void write(Writer output, Shape shape) throws IOException
Description copied from interface:ShapeWriterWrite a shape to the output writer- Specified by:
writein interfaceShapeWriter- Overrides:
writein classGeoJSONWriter- Throws:
IOException
-
-