SXXXXXXX_GeoElevation/geoelevation/config.py
2025-05-13 16:01:44 +02:00

40 lines
1.5 KiB
Python

# geoelevation/config.py
"""
Configuration constants for the GeoElevation package.
This module centralizes default values and settings used across the
GeoElevation application and library.
"""
# --- Cache Directory Configurations ---
# Default cache directory for Digital Elevation Model (DEM) HGT tiles
# This is used by ElevationManager.
GEOELEVATION_DEM_CACHE_DEFAULT: str = "geoelevation_dem_cache"
# Default root cache directory for map tiles (e.g., OpenStreetMap tiles)
# Used by map_viewer.MapTileManager. A sub-directory for each service
# (e.g., 'osm') will be created under this root.
DEFAULT_MAP_TILE_CACHE_ROOT_DIR: str = "geoelevation_map_tile_cache"
# --- Map Viewer Default Settings ---
# Default zoom level for map displays when not otherwise specified.
DEFAULT_MAP_DISPLAY_ZOOM_LEVEL: int = 3
# Default area size (in kilometers) to display around a point on the map
# when showing a map for a single point.
DEFAULT_MAP_VIEW_AREA_SIZE_KM: float = 5.0
# --- Logging Configuration (Example - can be more complex) ---
# Default logging level for the application if not overridden by CLI args.
# Options: "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"
# APPLICATION_DEFAULT_LOG_LEVEL: str = "INFO"
# --- Other Potential Configurations ---
# Example: Placeholder color for map tiles if they fail to load
# MAP_TILE_PLACEHOLDER_COLOR_RGB: tuple[int, int, int] = (220, 220, 220)
# Example: Network timeout for tile downloads
# NETWORK_REQUEST_TIMEOUT_SECONDS: int = 10