Class GeometryAsGeoJSONSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<org.locationtech.jts.geom.Geometry>
org.locationtech.spatial4j.io.jackson.GeometryAsGeoJSONSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class GeometryAsGeoJSONSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<org.locationtech.jts.geom.Geometry>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(org.locationtech.jts.geom.Geometry geom, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) protected voidwrite(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.Coordinate coord) protected voidwrite(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.Coordinate[] coord) protected voidwrite(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.CoordinateSequence coordseq) protected voidwrite(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.Polygon p) Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Constructor Details
-
GeometryAsGeoJSONSerializer
public GeometryAsGeoJSONSerializer()
-
-
Method Details
-
write
protected void write(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.Coordinate coord) throws IOException - Throws:
IOException
-
write
protected void write(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.CoordinateSequence coordseq) throws IOException - Throws:
IOException
-
write
protected void write(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.Coordinate[] coord) throws IOException - Throws:
IOException
-
write
protected void write(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.Polygon p) throws IOException - Throws:
IOException
-
serialize
public void serialize(org.locationtech.jts.geom.Geometry geom, 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
-