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
614 stars 134 forks source link

reading VPC with absolute paths does not work #771

Closed wiesehahn closed 4 months ago

wiesehahn commented 4 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 4 months ago

Fixed, thanks