babylon.config.defines.external_data
External data source coordinates (ArcGIS + Services composed via ExternalData).
Spec 058: extracted from the historical babylon.config.defines monolith.
Re-exported via babylon.config.defines.__init__; composed into GameDefines in babylon.config.defines._assembler.
Classes
|
ArcGIS organization and host configuration for external data sources. |
|
External data source configuration. |
|
ArcGIS FeatureServer service names and layers. |
- class babylon.config.defines.external_data.ArcGISDefines(**data)[source]
Bases:
BaseModelArcGIS organization and host configuration for external data sources.
Different federal agencies host HIFLD and infrastructure data on various ArcGIS organizations. This configuration centralizes the organization IDs and hosts to allow easy updates when services migrate.
Current organization mapping (as of 2024): - FEMA RAPT: Prison Boundaries, Law Enforcement (services.arcgis.com) - Esri US Federal: MIRTA Military Installations (services2.arcgis.com) - HIFLD Legacy: Some services still work (services1.arcgis.com)
- Parameters:
- model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class babylon.config.defines.external_data.ExternalDataDefines(**data)[source]
Bases:
BaseModelExternal data source configuration.
Centralizes ArcGIS organization IDs, hosts, and service names for HIFLD and related infrastructure data sources. This enables: 1. Easy updates when services migrate between organizations 2. Testing with alternative data sources 3. Clear documentation of data source provenance
- Parameters:
arcgis (ArcGISDefines)
services (ServicesDefines)
- model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- arcgis: ArcGISDefines
- services: ServicesDefines
- class babylon.config.defines.external_data.ServicesDefines(**data)[source]
Bases:
BaseModelArcGIS FeatureServer service names and layers.
Service names can be overridden for testing or alternative data sources. Layer numbers are important as some services (like Prison_Boundaries) have data on non-default layers.
- Parameters:
- model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].