Class ShapeAsGeoJSONSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<Shape>
org.locationtech.spatial4j.io.jackson.ShapeAsGeoJSONSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class ShapeAsGeoJSONSerializer extends com.fasterxml.jackson.databind.JsonSerializer<Shape>
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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)
     

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class Object

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

    • ShapeAsGeoJSONSerializer

      public ShapeAsGeoJSONSerializer()
  • Method Details

    • write

      protected void write(com.fasterxml.jackson.core.JsonGenerator gen, double... coords) throws IOException
      Throws:
      IOException
    • round

      public static double round(double v)
    • write

      public void write(com.fasterxml.jackson.core.JsonGenerator gen, Shape shape) throws IOException
      Throws:
      IOException
    • serialize

      public void serialize(Shape shape, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
      Specified by:
      serialize in class com.fasterxml.jackson.databind.JsonSerializer<Shape>
      Throws:
      IOException
      com.fasterxml.jackson.core.JsonProcessingException