public class JtsGeoJSONWriter extends GeoJSONWriter
Modifier and Type | Field and Description |
---|---|
protected JtsSpatialContext |
ctx |
Constructor and Description |
---|
JtsGeoJSONWriter(JtsSpatialContext ctx,
SpatialContextFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
write(Writer output,
Geometry geom) |
protected void |
write(Writer output,
NumberFormat nf,
Coordinate coord) |
protected void |
write(Writer output,
NumberFormat nf,
Coordinate[] coord) |
protected void |
write(Writer output,
NumberFormat nf,
CoordinateSequence coordseq) |
protected void |
write(Writer output,
NumberFormat nf,
Polygon p) |
void |
write(Writer output,
Shape shape)
Write a shape to the output writer
|
getFormatName, toString, write
protected final JtsSpatialContext ctx
public JtsGeoJSONWriter(JtsSpatialContext ctx, SpatialContextFactory factory)
protected void write(Writer output, NumberFormat nf, Coordinate coord) throws IOException
IOException
protected void write(Writer output, NumberFormat nf, CoordinateSequence coordseq) throws IOException
IOException
protected void write(Writer output, NumberFormat nf, Coordinate[] coord) throws IOException
IOException
protected void write(Writer output, NumberFormat nf, Polygon p) throws IOException
IOException
public void write(Writer output, Geometry geom) throws IOException
IOException
public void write(Writer output, Shape shape) throws IOException
ShapeWriter
write
in interface ShapeWriter
write
in class GeoJSONWriter
IOException
Copyright © 2020 LocationTech. All rights reserved.