I confirmed that the error occurred regardless of number of las files in las catalog.
This error was confirmed. But I am not sure whether the latest version of lidR fixed it.
I don't know how I can download version 4.0.4 so, I used version 4.0.3.
Here is my code.
las_cat<-readLAScatalog("D:/Lidar_2022/R/segment tree/missing_silva/folder1") chm<-rasterize_canopy(las_cat, 0.5, pitfree(c(0,2,5,10,15), c(3,1.5), subcircle = 0.2)) ttops <- locate_trees(las_cat, lmf(5), uniqueness = "bitmerge") ttops2<- st_as_sf(ttops) opt_output_files(las_cat) <- "D:/Lidar_2022/R/segment tree/missing_silva/folder1/f1segmented_{XLEFT}_{YBOTTOM}" algo <- silva2016(chm, ttops2) ctg_segmented <- segment_trees(las_cat, algo) opt_output_files(ctg_segmented) <- "D:/Lidar_2022/R/segment tree/missing_silva/folder1/f1canpoy_{XLEFT}_{YBOTTOM}" segmentedtree<-crown_metrics(ctg_segmented, NULL, geom = "convex")
It gave me an error below.
Processing [=====================] 100% (1/1) eta: 0s
Error: scan() expected 'a real', got 'IllegalArgumentException:'
In addition: Warning messages:
1: There are 304 points flagged 'withheld'.
2: 1 invalid polygons created. They likely correspond to trees with aligned points.
Here is a single las file that I used for.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4