Package com.spatial4j.core.io.jts
Class JtsGeoJSONWriter
- java.lang.Object
-
- com.spatial4j.core.io.GeoJSONWriter
-
- com.spatial4j.core.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 voidwrite(Writer output, Shape shape)Write a shape to the output writervoidwrite(Writer output, com.vividsolutions.jts.geom.Geometry geom)protected voidwrite(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.Coordinate coord)protected voidwrite(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.Coordinate[] coord)protected voidwrite(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.CoordinateSequence coordseq)protected voidwrite(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.Polygon p)-
Methods inherited from class com.spatial4j.core.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, com.vividsolutions.jts.geom.Coordinate coord) throws IOException
- Throws:
IOException
-
write
protected void write(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.CoordinateSequence coordseq) throws IOException
- Throws:
IOException
-
write
protected void write(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.Coordinate[] coord) throws IOException
- Throws:
IOException
-
write
protected void write(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.Polygon p) throws IOException
- Throws:
IOException
-
write
public void write(Writer output, com.vividsolutions.jts.geom.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
-
-