Class ProjJSONModule
Object
JacksonModule
SimpleModule
ProjJSONModule
- All Implemented Interfaces:
Serializable,Versioned
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 JacksonModule
JacksonModule.SetupContext -
Field Summary
Fields inherited from class SimpleModule
_abstractTypes, _defaultNullKeySerializer, _defaultNullValueSerializer, _deserializerModifier, _deserializers, _id, _keyDeserializers, _keySerializers, _mixins, _name, _namingStrategy, _serializerModifier, _serializers, _subtypes, _valueInstantiators, _version -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of the PROJJSON module with default settings. -
Method Summary
Modifier and TypeMethodDescriptionstatic JacksonModuleGets the new module instance.Methods inherited from class SimpleModule
_checkNotNull, addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getRegistrationId, registerSubtypes, registerSubtypes, registerSubtypes, setAbstractTypes, setDefaultNullKeySerializer, setDefaultNullValueSerializer, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setupModule, setValueInstantiators, versionMethods inherited from class JacksonModule
getDependencies
-
Constructor Details
-
ProjJSONModule
public ProjJSONModule()Creates a new instance of the PROJJSON module with default settings.
-
-
Method Details
-
getInstance
public static JacksonModule getInstance()Gets the new module instance. This is an alternative to constructor, to support SPI-based auto-registration.- Returns:
- The new module instance
-