Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void serialize​(org.locationtech.jts.geom.Geometry geom, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers)  
      protected void write​(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.Coordinate coord)  
      protected void write​(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.Coordinate[] coord)  
      protected void write​(com.fasterxml.jackson.core.JsonGenerator gen, org.locationtech.jts.geom.CoordinateSequence coordseq)  
      protected void write​(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
      • Methods inherited from class java.lang.Object

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

      • GeometryAsGeoJSONSerializer

        public GeometryAsGeoJSONSerializer()
    • Method Detail

      • write

        protected void write​(com.fasterxml.jackson.core.JsonGenerator gen,
                             org.locationtech.jts.geom.Coordinate coord)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(com.fasterxml.jackson.core.JsonGenerator gen,
                             org.locationtech.jts.geom.CoordinateSequence coordseq)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(com.fasterxml.jackson.core.JsonGenerator gen,
                             org.locationtech.jts.geom.Coordinate[] coord)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(com.fasterxml.jackson.core.JsonGenerator gen,
                             org.locationtech.jts.geom.Polygon p)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        public void serialize​(org.locationtech.jts.geom.Geometry geom,
                              com.fasterxml.jackson.core.JsonGenerator gen,
                              com.fasterxml.jackson.databind.SerializerProvider serializers)
                       throws java.io.IOException,
                              com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        serialize in class com.fasterxml.jackson.databind.JsonSerializer<org.locationtech.jts.geom.Geometry>
        Throws:
        java.io.IOException
        com.fasterxml.jackson.core.JsonProcessingException