-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add GeoportailFrance tilelayers to providers.json. #126
Add GeoportailFrance tilelayers to providers.json. #126
Conversation
7423d05
to
779b051
Compare
Hi, thanks a lot for this massive expansion of the database. To make it work within our current setup, the code that is currently in your |
4898281
to
b9f4f5f
Compare
Hello. Thanks for the review. The suggestions proposed should have been taken into account in commit b9f4f5f. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It looks great. I just compressed the JSON to include these in tests and committed that to check if all of these work as expected.
Ok. Thanks. Hoping everything will work correctly ! |
hmm, quite a few of these providers failed on CI (see https://github.com/geopandas/xyzservices/runs/8248560664?check_suite_focus=true). Can you have a look why is that? One reason may be that we use centre of bounds in the tile query xyzservices/xyzservices/tests/test_providers.py Lines 19 to 28 in 42e65c9
If some of these cover France and its overseas territories, I assume there is nothing in the centre. It is not the provider that is affected and we have this list of tiles where I always add one I know should be present whenever this occurs. Can you try to debug this and possibly add some known tiles to make CI happy? xyzservices/xyzservices/tests/test_providers.py Lines 63 to 71 in 42e65c9
|
I can have a look. I am not sure how to proceed (I am quite newbie with fixing CI test). |
a2e7096
to
a33590d
Compare
I tried to add 2 tiles that are (if not mistaken) somewhere in the middle of France and another one in Paris. But it doesn't seem to solve the failing ci test issue. |
I'll have a look either later today or in coming days. |
d5afb91
to
4a06dac
Compare
We're down to 18 failures from initial 37! Good! |
4a06dac
to
892f364
Compare
Yes. I am trying to reduce progressively the number of failures. Sorry for the multiple pushes. |
I spent some time to try to get rid off the remaining failures but I couldn't, even when adding known tiles for which I can see something when displaying the tile layer with Leaflet. So I propose for the moment to exclude these 18 tile layers when producing the |
Let me have a look at it later this week/early next week. |
… tile layers in provider_sources/_compress_providers.py
… tile layers in provider_sources/_compress_providers.py
892f364
to
959e9d5
Compare
@HaudinFlorence I've added two other tiles and got it down to 9 layers returning 404. Not sure how to make those work, don't see them in leaflet either. So I marked them as |
OK. Thanks for the feedback and for reducing the number of failing layers. |
Thanks a lot for this massive contribution ;). |
This PR proposes a new version of the json providers for the basemaps, including more than 250 additionnal tilelayers from Geoportail France. It also includes a piece of python code added to provider_sources/_compress_providers.py, used to generate the new providers from the xml requests. The names of the tilelayers have been automated from the original names and may be revisited if needed to reduce length/complexity.