-
-
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
grid_terrain crashes without error message #264
Comments
I fixed this issue. Because I always use The triangulation crashes with degenerated ground points so internally they are filtered however duplicated points are not a problem for function like lascheck(inLAS)
#> Checking the data
#> - Checking coordinates... ok
#> - Checking coordinates type... ok
#> - Checking attributes type... ok
#> - Checking ReturnNumber validity... ok
#> - Checking NumberOfReturns validity... ok
#> - Checking ReturnNumber vs. NumberOfReturns... ok
#> - Checking RGB validity... ok
#> - Checking absence of NAs... ok
#> - Checking duplicated points...
#> 1955 points are duplicated and share XYZ coordinates with other points
#> - Checking degenerated ground points...
#> There were 1955 degenerated ground points. Some X Y Z coordinates were repeated.
#> There were 4335 degenerated ground points. Some X Y coordinates were repeated but with different Z coordinates.
#> - Checking attribute population...
#> 'PointSourceID' attribute is not populated.
#> 'ScanDirectionFlag' attribute is not populated.
#> 'EdgeOfFlightline' attribute is not populated.
#> Checking the header
#> - Checking header completeness... ok
#> - Checking scale factor validity... ok
#> - Checking Point Data Format ID validity... ok
#> - Checking extra bytes attributes validity... ok
#> - Checking coordinate reference sytem... ok
#> Checking header vs data adequacy
#> - Checking attributes vs. point format... ok
#> - Checking header bbox vs. actual content... ok
#> - Checking header number of points vs. actual content... ok
#> - Checking header return number vs. actual content... ok
#> Checking preprocessing already done
#> - Checking ground classification... yes
#> - Checking normalization... no
#> - Checking negative outliers... ok
#> - Checking flightline classification... no |
Thanks JR. Using Interestingly, instead of removing duplicates, ADDING points seems to also circumvent the bug for some reason. I tried adding 10 manually created points just to see what happens.
Oddly enough, the bug doesn't occur now. Even if I didn't use I don't know if this is useful information for you or not, but I thought I'd mention it. |
Well actually at this stage it relies on the |
Hi Jean-Romain,
I've encountered an explained bug when using
grid_terrain
. Running the lines of code below will crash R.I've uploaded the point cloud subset that is causing the issue here.
Some observations:
tin()
(i.e.:knnidw()
works)I've made sure that my
lidR
andgeometry
libraries are up-to-date.Thanks!
The text was updated successfully, but these errors were encountered: