-
-
Notifications
You must be signed in to change notification settings - Fork 85
TMS tile providers: negative {-y} in urls #250
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I was able to got this to work touching some I basically look for a '{-y}' string in source url. This is probably not the best way to do it but I am happy to share my code so an expert can tell if there is something reusable in it or this should be implemented in a very different way. |
Yeah, that would help! |
I uploaed my modified tile.py here: But when I compared lines changed, I realized I was not using the last version published in github: I later tried to install development version from github, but I couldn't:
I hope differences are not important and you can test my changes (I only touched a couple of functions and added a new one). In my commit I also added (as a commit-comment) a contextily_tms_test() function to test my changes using a given server, zoom and bounding box coordinates to generate a image. I couldn't find yet any global coverage mapping service which also uses flipped '{-y}' tiles and reaches high zoom levels (i.e. 14 or higher). So my examples are only from the Spanish services I posted above and I guess they will fail to serve tiles outside Spain unless you use big bounding boxes to force small zoom levels. Please test it using other flipped-Y servers that you know |
This is all eventually related to #120 which was never finished. |
No idea, but IMHO my issue is much simpler. Just a matter of correcting y values when servers use an inverted tile numbering system for y axis |
Uh oh!
There was an error while loading. Please reload this page.
Basically all this is already described in geopandas/xyzservices#177
I found some tile servers in these pages and I was trying to use them in contextily:
https://www.ign.es/web/ide-area-nodo-ide-ign
https://idee.es/en/servicios-teselas
I am guessing there is a problem with xyz syntax since their urls end in
{z}/{x}/{-y}.extension
Not sure how to implement that in my code:
Thanks for any help
@abubelinha
EDIT: some related links?
The text was updated successfully, but these errors were encountered: