public class GeoJSONWriter extends Object implements ShapeWriter
| Constructor and Description |
|---|
GeoJSONWriter(SpatialContext ctx,
SpatialContextFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatName() |
String |
toString(Shape shape)
Write a shape to String
|
protected void |
write(Writer output,
NumberFormat nf,
double... coords) |
void |
write(Writer output,
Shape shape)
Write a shape to the output writer
|
public GeoJSONWriter(SpatialContext ctx, SpatialContextFactory factory)
public String getFormatName()
getFormatName in interface ShapeIOprotected void write(Writer output, NumberFormat nf, double... coords) throws IOException
IOExceptionpublic void write(Writer output, Shape shape) throws IOException
ShapeWriterwrite in interface ShapeWriterIOExceptionpublic String toString(Shape shape)
ShapeWritertoString in interface ShapeWriterCopyright © 2025. All rights reserved.