Passer au contenu

Selectionne les dalles MNX qui intersectent une region d'interet. Propose de les telecharger si elles ne sont pas deja dans un repertoire indique par l'utilisateur

Utilisation

download_mnx(
  ta,
  roi = NULL,
  folder = NULL,
  buffer = TRUE,
  prompt = TRUE,
  compress = TRUE,
  workers = 2
)

Arguments

ta

sf object. Tiles available from IGN (output of load_classified_ta

roi

sf object. Region of interest

folder

text. Local folder for files. Already downloaded files should not have their names changed.

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 ?

compress

boolean. Should files be compressed (LZW with predictor = 3) ?

workers

integer. Number of cores to use in future::plan(future::multisession(workers = ))

Valeur de retour

The input object with an additional attribute containing a text string indicating the link to the local file.

Voir également

load_classified_ta to download available tiles,

Exemples

if (FALSE) { # \dontrun{
ta <- load_classified_ta()
download_files(ta, folder = "./LidarHD/data/MNT/")
} # }