Enumerations
This module contains enumeration types used throughout the TimeAtlas data model.
Layer Type
- class timeatlas.TAEnums.LayerType[source]
Bases:
EnumEnumeration for layer types in the Time Atlas data model.
A layer is a synthetic derivation from a map, either from vectorization of specific content or from the actual digital facsimile of the map. It represents objects that users can manipulate to display as a 2D planar field in the interface.
- RASTER
Layer formed from an image stored through tiles in the geoserver
- VECTOR
Layer formed of Geometry entities that point to it via part_of_layer field
- RASTER = 'raster'
- VECTOR = 'vector'
Metadata Tag
- class timeatlas.TAEnums.MetadataTag[source]
Bases:
EnumEnumeration for broad categorization of metadata fields.
Tags indicate to the information system a broad category for metadata fields, which is useful for triggering specific facet searches in the interface.
- PEOPLE
Metadata related to persons or human entities
- PLACE
Metadata related to locations or geographical places
- LAND_USE
Metadata related to land usage or professions/activities
- PEOPLE = 'PEOPLE'
- PLACE = 'PLACE'
- LAND_USE = 'LAND_USE'
Type Mappings
The module also provides mapping dictionaries for converting between string representations and enum values:
- timeatlas.TAEnums.LAYER_TYPE_TO_ENUM
Mapping dictionary from string layer type names to LayerType enum values.
Used for parsing layer type strings from JSON/dict representations into enum values.
- timeatlas.TAEnums.METADATA_TAG_TO_ENUM
Mapping dictionary from string metadata tag names to MetadataTag enum values.
Used for parsing metadata tag strings from JSON/dict representations into enum values.