Telecharger les dalles lidarHD dans une zone d'interet
download_files.RdSelectionne les dalles qui intersectent une region d'interet, ou celles
dans les blocs specifies.
Propose de les telecharger si elles ne sont pas deja dans un repertoire
indique par l'utilisateur, un sous-dossier est cree par bloc.
Les fichiers sont deja indexes (format copc).
Un objet cata au format LAScatalog-class est
sauvegarde dans chaque sous-dossier bloc, fichier cata.rda.
Un objet cata pour l'ensemble des blocs
est sauvegarde a la racine du dossier.
Arguments
- ta
sfobject. Tiles available from IGN (output ofload_classified_ta- roi
sfobject or character vector. Region of interest ifsfobject, "blocs" of interest if character vector- folder
text. Local folder for laz files. Already downloaded files should not have their names changed. They are placed in sub-directories corresponding to blocs.
- buffer
boolean. Should tiles adjacent to tiles intersecting the roi be downloaded to avoid edge artefacts in further processing ?
- prompt
boolean. Should the user be prompted before plotting and downloading ?
Valeur de retour
The input object with an additional attribute containing a text
string indicated if tiles are in (dedans) or out (dehors) of roi, and if they
are already in the target folder done (fait) or todo (a_faire)).
This information is not updated in case the user asks for tiles to be downloaded.
Voir également
load_classified_ta to download available tiles,
check_folder to check that the structure of the folder which contains
downloaded files is correct
Exemples
if (FALSE) { # \dontrun{
ta <- load_classified_ta()
download_files(ta, folder = "./LidarHD/data/LAZ_classe/")
} # }