A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/r-lidar/lidR/issues/587 below:

Error at lidR::delineate_crowns - Invalid number of points in LinearRing found · Issue #587 · r-lidar/lidR · GitHub

The code worked with old versions of R and lidR on my system, but doesn't with the new versions and functions.
running the code results in following error:

library(lidR)
so_sample_las <- readLAS("so_sample_las.laz")
tree.hulls <- lidR::delineate_crowns(so_sample_las, type="concave", attribute="treeID") 
#> Error in (function (cond)  : 
#>                 error in evaluating the argument 'x' in selecting a method for function 'addAttrToGeom': Evaluation error:
#> IllegalArgumentException: Invalid number of points in LinearRing found
#> 3 - must be 0 or >= 4.

As the code seems to work on other systems, it doesn't at mine. What could be the problem?

🔗 so_sample_las.laz

Windows 10
R 4.1.1
lidR 4.0.1
all packages updated


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