Package org.n52.io.geojson
Class GeoJSONGeometrySerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<org.locationtech.jts.geom.Geometry>
-
- org.n52.io.geojson.GeoJSONGeometrySerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class GeoJSONGeometrySerializer extends com.fasterxml.jackson.databind.JsonSerializer<org.locationtech.jts.geom.Geometry>
-
-
Constructor Summary
Constructors Constructor Description GeoJSONGeometrySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserialize(org.locationtech.jts.geom.Geometry geometry, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers)
-
-
-
Method Detail
-
serialize
public void serialize(org.locationtech.jts.geom.Geometry geometry, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException, com.fasterxml.jackson.core.JsonProcessingException- Specified by:
serializein classcom.fasterxml.jackson.databind.JsonSerializer<org.locationtech.jts.geom.Geometry>- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
-