Telecharger les dalles lidarHD dans une zone d'interet
download_files.Rd
Selectionne les dalles qui intersectent une region d'interêt, 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). Au cas ou les fichiers deja
telecharges ont été modifies par l'utilisateur pour y inclure la hauteur sol
ils ne sont pas telecharges a nouveau.
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
sf
object. Tiles available from IGN (output ofload_classified_ta
- roi
sf
object or character vector. Region of interest ifsf
object, "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 or OUT of roi, and if they are already in the
target folder
(done/todo). This information is not updated in case the user
asks for "IN_todo" 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) {
ta <- load_classified_ta()
download_files(ta, folder = "./LidarHD/data/LAZ_classe/")
}