IGN (cx.providers.GeoportailFrance.orthos) migrated their services (wxs.ign.fr to data.geopf.fr)
salahelfarissi opened this issue ยท 7 comments
IGN just changed their routing this month (March 2024).
https://geoservices.ign.fr/services-geoplateforme-diffusion
try:
cx.add_basemap(
m.ax,
source=cx.providers.GeoportailFrance.orthos,
attribution=True,
crs=Maps.CRS.GOOGLE_MERCATOR,
zoom=zoom_level,
)
except HTTPError as e:
logger.error("Failed to load basemap: %s", e)
logger.warning("Continuing without basemap.")
Thanks for the report! It seems that our automatic tooling actually picked it up in f31e557. I will cut a release of xyzservices tomorrow to get it out.
I was actually wrong, we the tooling needs to be migrated.
@HaudinFlorence would you be able to look at it? You did the original implementation.
@salahelfarissi That would be very welcome. The code fetching the data currently lives here
xyzservices/provider_sources/_compress_providers.py
Lines 87 to 211 in e8198da
@martinfleis I can have a look if needed. @salahelfarissi Don't hesitate to tell me if you need some help
@HaudinFlorence @martinfleis
My first try. Please review and let me know if I need to write proper tests.
#166
@salahelfarissi it should be covered by existing test suite