Class JacksonGeometrySerializer

java.lang.Object
tools.jackson.databind.ValueSerializer<org.locationtech.jts.geom.Geometry>
tools.jackson.databind.ser.std.StdSerializer<org.locationtech.jts.geom.Geometry>
org.bremersee.geojson.converter.serialization.JacksonGeometrySerializer
All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class JacksonGeometrySerializer extends tools.jackson.databind.ser.std.StdSerializer<org.locationtech.jts.geom.Geometry>
A Jackson serializer for a Geometry.
Author:
Christian Bremer
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer

    tools.jackson.databind.ValueSerializer.None
  • Field Summary

    Fields inherited from class tools.jackson.databind.ser.std.StdSerializer

    _handledType
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new Jackson geometry serializer.
    JacksonGeometrySerializer(boolean withBoundingBox, boolean useBigDecimal)
    Instantiates a new Jackson geometry serializer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(org.locationtech.jts.geom.Geometry value, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext serializationContext)
     

    Methods inherited from class tools.jackson.databind.ser.std.StdSerializer

    _neitherNull, _nonEmpty, _wrapIOFailure, acceptJsonFormatVisitor, acceptJsonFormatVisitorForBinary, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow

    Methods inherited from class tools.jackson.databind.ValueSerializer

    createContextual, getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JacksonGeometrySerializer

      public JacksonGeometrySerializer()
      Instantiates a new Jackson geometry serializer.
    • JacksonGeometrySerializer

      public JacksonGeometrySerializer(boolean withBoundingBox, boolean useBigDecimal)
      Instantiates a new Jackson geometry serializer.
      Parameters:
      withBoundingBox - the with bounding box
      useBigDecimal - the use big decimal
  • Method Details

    • serialize

      public void serialize(org.locationtech.jts.geom.Geometry value, tools.jackson.core.JsonGenerator jgen, tools.jackson.databind.SerializationContext serializationContext)
      Specified by:
      serialize in class tools.jackson.databind.ser.std.StdSerializer<org.locationtech.jts.geom.Geometry>