Hello,
I am currently working with LidarTinGridding in R using Whitebox in RStudio. I have a directory containing numerous laz files and I'd like to take advantage of Whitebox's capability to process them all together in order to reduce edge effects, as demonstrated in the Whitebox Tools user manual: Whitebox Tools Manual.
When calling the entire directory as input, the tool will use points in a small buffer area extending into neighbouring tiles to reduce edge effects
I'm attempting to provide the input folder as an argument or a list of files to the function, but I'm encountering an issue where I still receive a "permission denied" error. I've tried running RStudio as an administrator and moving the input files to as many public folders as possible, but I'm still encountering the same permission denied problem.
When I work with a single file, everything runs smoothly. However, I'm wondering how to process multiple files. Is this option implemented in R whitebox?
You can find my code and sample tiles in this GitHub repository: GitHub Repository. The folder named "laz" contains two sample tiles processed with the script testing_whitebox.R.
My sessioninfo:
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=Czech_Czechia.utf8 LC_CTYPE=Czech_Czechia.utf8 LC_MONETARY=Czech_Czechia.utf8
[4] LC_NUMERIC=C LC_TIME=Czech_Czechia.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] whitebox_2.3.1
loaded via a namespace (and not attached):
[1] compiler_4.2.0 tools_4.2.0 rstudioapi_0.14
The error I am getting:
> setwd(input2)
> wbt_lidar_tin_gridding(
+ input=".",
+ output = "c:/Users/matej.man/Downloads/laz/fin.tif",
+ parameter = "elevation",
+ returns = "all",
+ resolution = 10)
Error running WhiteboxTools (LidarTinGridding)
whitebox.exe_path: "C:\Users\matej.man\AppData\Roaming/R/data/R/whitebox/WBT/whitebox_tools.exe"; File exists? TRUE
Arguments: --run=LidarTinGridding --input="." --output="c:/Users/matej.man/Downloads/laz/fin.tif" --parameter=elevation --returns=all --resolution=10 --exclude_cls=7,18 -v
System command had status 101
*******************************
* Welcome to LidarTINGridding *
* Powered by WhiteboxTools *
* www.whiteboxgeo.com *
*******************************
thread 'main' panicked at 'Error while reading LiDAR file header (.).: Os { code: 5, kind: PermissionDenied, message: "Přístup byl odepřen." }', whitebox-tools-app\src\tools\lidar_analysis\lidar_tin_gridding.rs:494:81
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
lidar_tin_gridding - Elapsed Time: NA [did not run]
Hello,
I am currently working with LidarTinGridding in R using Whitebox in RStudio. I have a directory containing numerous laz files and I'd like to take advantage of Whitebox's capability to process them all together in order to reduce edge effects, as demonstrated in the Whitebox Tools user manual: Whitebox Tools Manual.
I'm attempting to provide the input folder as an argument or a list of files to the function, but I'm encountering an issue where I still receive a "permission denied" error. I've tried running RStudio as an administrator and moving the input files to as many public folders as possible, but I'm still encountering the same permission denied problem.
When I work with a single file, everything runs smoothly. However, I'm wondering how to process multiple files. Is this option implemented in R whitebox?
You can find my code and sample tiles in this GitHub repository: GitHub Repository. The folder named "laz" contains two sample tiles processed with the script testing_whitebox.R.
My sessioninfo:
The error I am getting: