jblindsay / whitebox-tools

An advanced geospatial data analysis platform
https://www.whiteboxgeo.com/
MIT License
967 stars 161 forks source link

LidarThinHighDensity throw "panicked at 'index out of bounds:'" depending on the resolution #408

Open gis-maker opened 6 months ago

gis-maker commented 6 months ago

I'm trying to thin a lidar data taken from a DJI L1 camera. The tool LidarThinHighDensity can throw an error depending on the resolution I set. For example, 0.5 meters works fine but when I set it to 0.4, the tool stops working. The data I'm trying to thin: Average point density: 615.644 pts / m2 Nominal point spacing: 0.0403 m

LidarThin tool works with this data as expected.


  • Welcome to LidarThinHighDensity *
  • Powered by WhiteboxTools *
  • www.whiteboxgeo.com *

    reading input LiDAR file... Performing analysis... thread 'main' panicked at 'index out of bounds: the len is 67 but the index is 67', whitebox-tools-app\src\tools\lidar_analysis\lidar_thin_high_density.rs:316:29 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

gis-maker commented 2 months ago

Just update. If the resolution is shown with higher accuracy, for example 0.300001, the tool will work.