Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for non Web Mercator (EPSG 3857) tiles. #299

Open
LebronsDad opened this issue Feb 20, 2023 · 3 comments
Open

Support for non Web Mercator (EPSG 3857) tiles. #299

LebronsDad opened this issue Feb 20, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@LebronsDad
Copy link

Does Terracotta support serving non Web Mercator tiles?

I tried to change _TARGET_CRS: str = "epsg:3857" and target_crs: str = "epsg:3857", to use "epsg:4326" for the Equirectangular projection. It doesn't throw an error, but I'm getting blank map tiles. Am I doing something wrong or was Terracotta not meant to be used this way?

It would also be nice to have a setting to easily change this in the config.py

@dionhaefner
Copy link
Collaborator

dionhaefner commented Feb 21, 2023

That does not work because there is no mapping from physical bounds to xyz tiles in that case. We are using mercantile for this conversion which is specifically tailored to Web Mercator.

There may be conventions on how to define xyz tiles for other CRS; in that case, the functions in terracotta.xyz would have to be re-implemented to reflect that. Happy to review a pull request if anyone wants to contribute that functionality.

@j08lue
Copy link
Collaborator

j08lue commented Feb 22, 2023

There is a library for tile matrix support in other projections: https://github.com/developmentseed/morecantile. rio-tiler uses that https://github.com/cogeotiff/rio-tiler and, based on that, TiTiler https://github.com/developmentseed/titiler

@dionhaefner
Copy link
Collaborator

Sounds like a straightforward PR, then :)

@dionhaefner dionhaefner added the enhancement New feature or request label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants