Italian Cadastre WMS don't render well
agronomofiorentini opened this issue · comments
agronomofiorentini commented
Describe the bug
I would like to add the Italian Cadastre WMS service to folium.
The Italian cadastre releases this service wms under by License CC-BY 4.0.
The following is the code that i am using, but the map is displaying wrong.
I have checked the documentation of the Italian Cadastre WMS and the coordinate reference system by default EPSG:6706.
To Reproduce
import folium
m = folium.Map(location=[47.46901, 9.36688], zoom_start=13)
folium.raster_layers.WmsTileLayer(url = 'https://wms.cartografia.agenziaentrate.gov.it/inspire/wms/ows01.php?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap',
layers = 'Cartografia_Catastale',
transparent = True,
control = True,
fmt="image/png",
name = 'wms',
overlay = True,
show = True,
).add_to(m)
folium.LayerControl().add_to(m)
m
Environment:
- Browse: chrome
- Jupyter Notebook
- Python version Python 3.10.4
- folium version 0.14.0
- branca version 0.6.0
Additional context
I think it's related to the CRS.
Possible solutions
Maybe adding the argument crs to set a costum projection to the WmsTileLayer could be the solution?