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 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
write(Writer output, org.locationtech.jts.geom.Geometry geom)
void
write(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, 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
public void write(Writer output, org.locationtech.jts.geom.Geometry geom) throws IOException
- Throws:
IOException
-
write
public void write(Writer output, Shape shape) throws IOException
Description copied from interface:ShapeWriter
Write a shape to the output writer- Specified by:
write
in interfaceShapeWriter
- Overrides:
write
in classGeoJSONWriter
- Throws:
IOException
-
-