block by ThomasG77 6523b832fc4d3fca8814ed92bc2cd16c


Get IGN legends for WMS Raster, WMS Vecteur and WMTS webservices


There is a CSV of available IGN webservices at

Most webservices for raster do not return the legend and point to a broken as shown below


From the French geoportal, we guessed the pattern to retrieve image legends and generate an “augmented” default file with the legend image URL link

To get end result look at:

You can also get each legend image as we retrieved them locally in the repository. There are in the zip file

Not all webservices do have a legend, 241 have a legend (present.txt) and 357 do not have (no_present.txt). We didn’t analysed the cause for the missing legend e.g hosted somewhere or not useful like for imagery

How it was done

Done on linux using bash.

Look at file for the recipe