titiler.core package structure
mainThe titiler.core package is organized into several functional modules:
algorithm/: Contains algorithms for data processing, includingbase.py(ABC Base Class for custom algorithms),dem.py(elevation data), andindex.py(band index algorithms).models/: Pydantic models for responses, includingmapbox.py(Mapbox TileJSON) andOGC.py(Open GeoSpatial Consortium models like TileMatrixSets).resources/: Enumerations (e.g.,enums.py) and custom Starlette responses (responses.py).templates/: HTML/XML templates for a Leaflet-based map viewer (map.html) and OGC WMTS documents (wmts.xml).factory.py: Contains theTilerFactoryused to generate dynamic tiler endpoints.routing.py: CustomAPIRouteclass.dependencies.py: FastAPI dependencies.errors.py: Error handler factory.middleware.py: Starlette middlewares.telemetry.py: OpenTelemetry tracing functions.utils.py: Utility functions.