Passer au contenu

Calcul des fichiers MNT a partir des fichiers LiDAR HD de l'IGN presents dans un dossier (par exemple telecharges avec download_files) et les enregistre dans un autre repertoire. Les fichiers MNT deja presents ne sont pas re-calcules. Le calcul est effectuee avec la fonction rasterize_terrain et l'algorithme tin avec les points de classe 2 et 9. Les fichiers a traiter peuvent etre selectionnes via une zone d'interet, il est conseille que les fichiers adjacents soient egalement telecharges pour eviter les effets de bord.

Utilisation

compute_dtm(
  laz_folder,
  dtm_folder = NULL,
  res = 1,
  roi = NULL,
  prompt = TRUE,
  ncores = 2L
)

Arguments

laz_folder

Text, path to the folder that contains the laz files downloaded from IGN. The folder should contain a "cata.rda" file with the saved LAScatalog-class object of files in the folder.

dtm_folder

Text, path to the folder that contains or will contain the DTM files. If NULL a folder is created in the same directory as `laz_folder` with name "DTM_#res#m" where #res# is parameter `res`.

res

numeric, DTM resolution

roi

sf object or character vector. Region of interest if sf object, "blocs" of interest if character vector.

prompt

boolean. Should the user be prompted before plotting and computing ?

ncores

Integer, number of cores to use with future package.

Valeur de retour

A data.frame with the files to compute the DTM from and a boolean indicating if the computation was successful or not.

Exemples

if (FALSE) compute_dtm("./data/LAZ_classe/", res = 1, prompt = TRUE, ncores = 2L) # \dontrun{}