Batch download tiles

Imagine you need to download several tiles. Instead of interactive clicking you could save the list of tile names in a file and automatically download them with wget.

For example, to download an area of LIDAR HD IGN, here is how to do:

1- download the list of all tiles (“tableau d’assemblage”) in shapefile format

2- open it on QGis, then draw a new shapefile containing your area. Select all tiles intersecting this area and export the attribute table of selection in CSV format. You obtain a file like this:

nom_pkk,url_telech
LHD_FXX_0945_6419_PTS_O_LAMB93_IGN69.copc.laz,https://storage.sbg.cloud.ovh.net/v1/AUTH_63234f509d6048bca3c9fd7928720ca1/ppk-lidar/QN/LHD_FXX_0945_6419_PTS_O_LAMB93_IGN69.copc.laz
LHD_FXX_0953_6419_PTS_O_LAMB93_IGN69.copc.laz,https://storage.sbg.cloud.ovh.net/v1/AUTH_63234f509d6048bca3c9fd7928720ca1/ppk-lidar/QN/LHD_FXX_0953_6419_PTS_O_LAMB93_IGN69.copc.laz
LHD_FXX_0959_6422_PTS_O_LAMB93_IGN69.copc.laz,https://storage.sbg.cloud.ovh.net/v1/AUTH_63234f509d6048bca3c9fd7928720ca1/ppk-lidar/QN/LHD_FXX_0959_6422_PTS_O_LAMB93_IGN69.copc.laz

3- extract only the URLs from this file with awk

awk -F, '$2~/https/ {OFS=",";print $2}' input.csv > urls.csv

4- download all urls with wget

wget -i urls.csv

This is it! Maybe one should add a verification step to be sure that all files are properly downloaded.

Webservices IGN

Accès au webservices (WMS, WMTS, WFS, …) du Geoportail IGN

Les données IGN sont disponibles par webservices aux membres du CEREGE grâce à la licence Enseignement/Recherche (contrat de licence).

  1. documentation de base sur le site IGN
    ici
    et notamment celui pour QGIS, ceci
  2. Le serveur WMS à connecter dans votre SIG est de cette forme

on remplacera xxxx par la clé du contrat
Les codes d’accès et la clef sont à demander auprès du SIGéo