Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds TiTiler xarray-backed tile endpoints to eo-api, wiring a new router into the FastAPI app and introducing early-boot PROJ data configuration to avoid CRS/proj.db issues when importing raster tooling.
Changes:
- Add
titiler-xarray(and its transitive deps) to the project dependencies/lockfile. - Introduce a
tilespackage that exposes a TiTilertiles_routerbased on xarray/zarr. - Configure PROJ data env vars during startup to prefer the active Python environment’s PROJ data.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
pyproject.toml |
Adds titiler-xarray as an application dependency. |
uv.lock |
Locks titiler-xarray and new transitive deps (e.g., obstore). |
src/eo_api/tiles/titiler.py |
Defines a TiTiler xarray TilerFactory router for zarr/xarray tiling. |
src/eo_api/tiles/__init__.py |
Exports tiles_router for easy import/registration. |
src/eo_api/startup.py |
Adds PROJ env var configuration during early-boot side effects. |
src/eo_api/main.py |
Mounts the new tiles router under /zarr. |
You can also share your feedback on Copilot code review. Take the survey.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds new TiTiler "/zarr" endpoints allowing tiles to be generated from a zarr folder (or an url).
It also includes a PROJ path check in startup.py to make sure the correct PROJ dependency is used with uv.
Example tile urls:
http://127.0.0.1:8000/zarr/tiles/WebMercatorQuad/12/1913/1949?url=data/downloads/worldpop_population_yearly.zarr&variable=pop_total&sel=time=2026-01-01&colormap_name=ylorbr
Returns:

http://127.0.0.1:8000/zarr/tiles/WebMercatorQuad/9/239/244?url=data/downloads/worldpop_population_yearly.zarr&variable=pop_total&sel=time=2026-01-01&colormap=[[[0,5],[254,229,217]],[[5,10],[252,187,161]],[[10,15],[252,146,114]],[[15,20],[251,106,74]],[[20,25],[222,45,38]],[[25,10000],[165,15,21]]]
(GEE version to the right)