r-lidar / lidR

Airborne LiDAR data manipulation and visualisation for forestry application
https://CRAN.R-project.org/package=lidR
GNU General Public License v3.0
601 stars 131 forks source link

reading VPC with absolute paths does not work #771

Closed wiesehahn closed 3 months ago

wiesehahn commented 3 months ago
f <- system.file("extdata", "Topography.las", package="lasR")
ans <- lasR::exec(lasR::write_vpc(ofile = tempfile(fileext = ".vpc"), absolute_path = TRUE), on = f)
ctg <- lidR::readLAScatalog(ans)
#> Warning in normalizePath(path.expand(path), winslash, mustWork):
#> path[1]="C:/Users/jwiesehahn/AppData/Local/Temp/RtmpwtyX1z/C:/Program
#> Files/R/R-4.4.0patched/library/lasR/extdata/Topography.las": 

f <- system.file("extdata", "Topography.las", package="lasR")
ans <- lasR::exec(lasR::write_vpc(ofile = tempfile(fileext = ".vpc"), absolute_path = FALSE), on = f)
ctg <- lidR::readLAScatalog(ans)
Jean-Romain commented 3 months ago

Fixed, thanks