Class ProjJSONModule

Object
Module
SimpleModule
ProjJSONModule
All Implemented Interfaces:
Versioned, Serializable

public class ProjJSONModule extends SimpleModule
Jackson Module that supports serialization and deserialization of PROJJSON objects.

PROJJSON is a standard representation for coordinate reference systems (CRS) in JSON format, used in various geospatial applications, including GeoParquet for storing CRS information.

The Schema for the GeoJSON format is defined at: https://proj.org/en/latest/schemas/v0.7/projjson.schema.json

To use this module with an existing ObjectMapper:

 ObjectMapper mapper = new ObjectMapper();
 mapper.registerModule(new ProjJSONModule());
 
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class Module

    Module.SetupContext
  • Field Summary

    Fields inherited from class SimpleModule

    _abstractTypes, _deserializerModifier, _deserializers, _hasExplicitName, _keyDeserializers, _keySerializers, _mixins, _name, _namingStrategy, _serializerModifier, _serializers, _subtypes, _valueInstantiators, _version
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of the PROJJSON module with default settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Module
    Gets the new module instance.

    Methods inherited from class SimpleModule

    _checkNotNull, addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getTypeId, registerSubtypes, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setupModule, setValueInstantiators, version

    Methods inherited from class Module

    getDependencies

    Methods inherited from class Object

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

    • ProjJSONModule

      public ProjJSONModule()
      Creates a new instance of the PROJJSON module with default settings.
  • Method Details

    • getInstance

      public static Module getInstance()
      Gets the new module instance. This is an alternative to constructor, to support SPI-based auto-registration.
      Returns:
      The new module instance