-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle more errors in pitfree() #286
Comments
library(lidR)
#> Le chargement a nécessité le package : raster
#> Le chargement a nécessité le package : sp
LASfile <- system.file("extdata", "MixedConifer.laz", package="lidR")
las <- readLAS(LASfile)
# 0 points
las2 = lasfilter(las, Z >= 33)
chm <- grid_canopy(las2, res = 0.5, pitfree(thresholds = c(0,2,5,10,15,20)))
#> Error: The point cloud contains 0 point
# 3 points
las2 = lasfilter(las, Z >= 31.92)
chm <- grid_canopy(las2, res = 0.5, pitfree(thresholds = c(0,2,5,10,15,20)))
#> Error: There are not enought points to triangulate.
# 3 points
las2 = lasfilter(las, Z >= 31.92)
chm <- grid_canopy(las2, res = 0.5, pitfree(thresholds = c(0,2,5,10,15,20), subcircle = 0.2))
# 4 points
las2 = lasfilter(las, Z >= 31.9)
chm <- grid_canopy(las2, res = 0.5, pitfree(thresholds = c(0,2,5,10,15,20)))
# 4 points (works)
las2 = lasfilter(las, Z >= 31.9)
chm <- grid_canopy(las2, res = 0.5, pitfree(thresholds = c(0,2,5,10,15,20), subcircle = 0.2)) Created on 2019-10-10 by the reprex package (v0.3.0) |
I am running 2.1.4 and still having an issue with pitfree causing an apply_catalog job to crash. |
If you are referring to this issue is has not been fixed yet. I'm not able to reproduce. If you have some bug please report in a new issue with a reproducible example. I'm waiting for a bug report from the person who asked this question on stackexchange (is it you?) before to release 2.1.4. |
I did not ask the original question but I did just submit a bug report with reproducible example (#288) |
All the following cases should be handled internally and should fail nicely
Created on 2019-10-09 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: