Class JtsGeoJSONWriter
java.lang.Object
org.locationtech.spatial4j.io.GeoJSONWriter
org.locationtech.spatial4j.io.jts.JtsGeoJSONWriter
- All Implemented Interfaces:
ShapeIO, ShapeWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwrite(Writer output, NumberFormat nf, org.locationtech.jts.geom.Coordinate coord) protected voidwrite(Writer output, NumberFormat nf, org.locationtech.jts.geom.Coordinate[] coord) protected voidwrite(Writer output, NumberFormat nf, org.locationtech.jts.geom.CoordinateSequence coordseq) protected voidwrite(Writer output, NumberFormat nf, org.locationtech.jts.geom.Polygon p) voidvoidWrite a shape to the output writerMethods inherited from class GeoJSONWriter
getFormatName, toString, write
-
Field Details
-
ctx
-
-
Constructor Details
-
JtsGeoJSONWriter
-
-
Method Details
-
write
protected void write(Writer output, NumberFormat nf, org.locationtech.jts.geom.Coordinate coord) throws IOException - Throws:
IOException
-
write
protected void write(Writer output, NumberFormat nf, org.locationtech.jts.geom.CoordinateSequence coordseq) throws IOException - Throws:
IOException
-
write
protected void write(Writer output, NumberFormat nf, org.locationtech.jts.geom.Coordinate[] coord) throws IOException - Throws:
IOException
-
write
protected void write(Writer output, NumberFormat nf, org.locationtech.jts.geom.Polygon p) throws IOException - Throws:
IOException
-
write
- Throws:
IOException
-
write
Description copied from interface:ShapeWriterWrite a shape to the output writer- Specified by:
writein interfaceShapeWriter- Overrides:
writein classGeoJSONWriter- Throws:
IOException
-