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 void
write
(Writer output, NumberFormat nf, org.locationtech.jts.geom.Coordinate coord) protected void
write
(Writer output, NumberFormat nf, org.locationtech.jts.geom.Coordinate[] coord) protected void
write
(Writer output, NumberFormat nf, org.locationtech.jts.geom.CoordinateSequence coordseq) protected void
write
(Writer output, NumberFormat nf, org.locationtech.jts.geom.Polygon p) void
void
Write a shape to the output writerMethods inherited from class org.locationtech.spatial4j.io.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:ShapeWriter
Write a shape to the output writer- Specified by:
write
in interfaceShapeWriter
- Overrides:
write
in classGeoJSONWriter
- Throws:
IOException
-