public class ShapeAsGeoJSONSerializer extends com.fasterxml.jackson.databind.JsonSerializer<Shape>
Constructor and Description |
---|
ShapeAsGeoJSONSerializer() |
Modifier and Type | Method and Description |
---|---|
static double |
round(double v) |
void |
serialize(Shape shape,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers) |
protected void |
write(com.fasterxml.jackson.core.JsonGenerator gen,
double... coords) |
void |
write(com.fasterxml.jackson.core.JsonGenerator gen,
Shape shape) |
protected void write(com.fasterxml.jackson.core.JsonGenerator gen, double... coords) throws IOException
IOException
public static double round(double v)
public void write(com.fasterxml.jackson.core.JsonGenerator gen, Shape shape) throws IOException
IOException
public void serialize(Shape shape, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
serialize
in class com.fasterxml.jackson.databind.JsonSerializer<Shape>
IOException
com.fasterxml.jackson.core.JsonProcessingException
Copyright © 2020 LocationTech. All rights reserved.