LAScatalog function (catalog_map) using filter_poi(), "Cannot write a file with 0 points" #742
-
I'm trying to identify and remove points found by the las<-segment_shapes(las, shp_plane(k = 25), "planar")
las<-segment_shapes(las, shp_line(th = 8, k = 15), "linear")
las<-filter_poi(las, planar==FALSE, linear==FALSE) If the result of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hard to help without a minimal reproducible example but I guess you could add |
Beta Was this translation helpful? Give feedback.
-
Thank you, that works! For posterity, I got an error from the "..." part in catalog_sapply, perhaps something you forgot to remove? |
Beta Was this translation helpful? Give feedback.
You found a bug. It is a limit case. In chunk 2 when exiting your
myfilt
function it remains a single point. This point is in the buffer and is removed automatically bycatalog_map
that handles the buffer for you. So it remains 0 points inside the tile outside your function. You can handle that using the good oldcatalog_apply
function but I fixed it in 4.1.1 available on github. Install the latest version or use: