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,
com.vividsolutions.jts.geom.Geometry geom) |
protected void |
write(Writer output,
NumberFormat nf,
com.vividsolutions.jts.geom.Coordinate coord) |
protected void |
write(Writer output,
NumberFormat nf,
com.vividsolutions.jts.geom.Coordinate[] coord) |
protected void |
write(Writer output,
NumberFormat nf,
com.vividsolutions.jts.geom.CoordinateSequence coordseq) |
protected void |
write(Writer output,
NumberFormat nf,
com.vividsolutions.jts.geom.Polygon p) |
void |
write(Writer output,
Shape shape)
Write a shape to the output writer
|
getFormatName, toString, writeprotected final JtsSpatialContext ctx
public JtsGeoJSONWriter(JtsSpatialContext ctx, SpatialContextFactory factory)
protected void write(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.Coordinate coord) throws IOException
IOExceptionprotected void write(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.CoordinateSequence coordseq) throws IOException
IOExceptionprotected void write(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.Coordinate[] coord) throws IOException
IOExceptionprotected void write(Writer output, NumberFormat nf, com.vividsolutions.jts.geom.Polygon p) throws IOException
IOExceptionpublic void write(Writer output, com.vividsolutions.jts.geom.Geometry geom) throws IOException
IOExceptionpublic void write(Writer output, Shape shape) throws IOException
ShapeWriterwrite in interface ShapeWriterwrite in class GeoJSONWriterIOExceptionCopyright © 2025. All rights reserved.