block by ThomasG77 6523b832fc4d3fca8814ed92bc2cd16c

6523b832fc4d3fca8814

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

Context

There is a CSV of available IGN webservices at https://geoservices.ign.fr/documentation/services/tableau_ressources

Most webservices for raster do not return the legend and point to a broken http://api.ign.fr/legendes/ as shown below

Results

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 get_legends_ign.sh for the recipe

get_legends_ign.sh