| Constructor and Description |
|---|
GeometrySerializer(Context<P> context) |
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(Geometry<P> geometry,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers)
Method that can be called to ask implementation to serialize
values of type this serializer handles.
|
private void |
writeCoords(com.fasterxml.jackson.core.JsonGenerator gen,
GeometryType type,
Geometry<P> geom) |
private void |
writeCrs(com.fasterxml.jackson.core.JsonGenerator gen,
CoordinateReferenceSystem<P> crs) |
private void |
writeCrsName(com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.String epsgString) |
private void |
writeGeometries(com.fasterxml.jackson.core.JsonGenerator gen,
Geometry<P>[] geometries) |
private void |
writeGeometry(com.fasterxml.jackson.core.JsonGenerator gen,
Geometry<P> geometry,
boolean includeCrs) |
private void |
writeLinear(com.fasterxml.jackson.core.JsonGenerator gen,
Geometry<P> geom,
double[] buf) |
private void |
writeListOfLinear(com.fasterxml.jackson.core.JsonGenerator gen,
Complex geom,
double[] buf) |
private void |
writeListOfPolygon(com.fasterxml.jackson.core.JsonGenerator gen,
MultiPolygon<P> geom,
double[] buf) |
private void |
writeNamedCrs(com.fasterxml.jackson.core.JsonGenerator gen,
CoordinateReferenceSystem<P> crs) |
private void |
writePosition(com.fasterxml.jackson.core.JsonGenerator gen,
P position,
double[] buf) |
public void serialize(Geometry<P> geometry, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws java.io.IOException
serialize in class com.fasterxml.jackson.databind.JsonSerializer<Geometry<P extends Position>>geometry - Geometry value to serialize; can not be null.gen - Generator used to output resulting Json contentserializers - Provider that can be used to get serializers forjava.io.IOExceptionprivate void writeGeometry(com.fasterxml.jackson.core.JsonGenerator gen,
Geometry<P> geometry,
boolean includeCrs)
throws java.io.IOException
java.io.IOExceptionprivate void writeGeometries(com.fasterxml.jackson.core.JsonGenerator gen,
Geometry<P>[] geometries)
throws java.io.IOException
java.io.IOExceptionprivate void writeCoords(com.fasterxml.jackson.core.JsonGenerator gen,
GeometryType type,
Geometry<P> geom)
throws java.io.IOException
java.io.IOExceptionprivate void writeListOfPolygon(com.fasterxml.jackson.core.JsonGenerator gen,
MultiPolygon<P> geom,
double[] buf)
throws java.io.IOException
java.io.IOExceptionprivate void writeListOfLinear(com.fasterxml.jackson.core.JsonGenerator gen,
Complex geom,
double[] buf)
throws java.io.IOException
java.io.IOExceptionprivate void writeLinear(com.fasterxml.jackson.core.JsonGenerator gen,
Geometry<P> geom,
double[] buf)
throws java.io.IOException
java.io.IOExceptionprivate void writePosition(com.fasterxml.jackson.core.JsonGenerator gen,
P position,
double[] buf)
throws java.io.IOException
java.io.IOExceptionprivate void writeCrs(com.fasterxml.jackson.core.JsonGenerator gen,
CoordinateReferenceSystem<P> crs)
throws java.io.IOException
java.io.IOExceptionprivate void writeNamedCrs(com.fasterxml.jackson.core.JsonGenerator gen,
CoordinateReferenceSystem<P> crs)
throws java.io.IOException
java.io.IOExceptionprivate void writeCrsName(com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.String epsgString)
throws java.io.IOException
java.io.IOException