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 ShapeIO
protected void write(Writer output, NumberFormat nf, double... coords) throws IOException
IOException
public void write(Writer output, Shape shape) throws IOException
ShapeWriter
write
in interface ShapeWriter
IOException
public String toString(Shape shape)
ShapeWriter
toString
in interface ShapeWriter
Copyright © 2020 LocationTech. All rights reserved.