r-lidar / lasR

Fast and Pipable Airborne LiDAR Data Tools
https://r-lidar.github.io/lasR/
GNU General Public License v3.0
43 stars 0 forks source link

R crashes when writing local_maximum to file #31

Closed wiesehahn closed 1 month ago

wiesehahn commented 1 month ago

I tried to calc local maxima and write them to a file on disk, but R keeps crashing.

e.g.

library(lasR)
library(here)

f <- system.file("extdata", "MixedConifer.las", package = "lasR")

localmax = local_maximum(ws= 3, min_height = 5, ofile = here("data", "*_ttops.gpkg"))

pipeline = localmax
ans = exec(pipeline, on = f)

Am I missing something?

Jean-Romain commented 1 month ago

Bug confirmed. It is related to the use of the wildcard with vector data.

Am I missing something?

Rule of thumb: when it crashes, it is NEVER your fault. A crash should absolutely never occur.

Jean-Romain commented 1 month ago

Fixed. Thank you again.