Skip to content
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

Error in grid_terrain with keep_lowest=True #213

Closed
komazsofi opened this issue Jan 24, 2019 · 1 comment
Closed

Error in grid_terrain with keep_lowest=True #213

komazsofi opened this issue Jan 24, 2019 · 1 comment
Assignees
Labels
Bug A bug in the package

Comments

@komazsofi
Copy link

komazsofi commented Jan 24, 2019

I have got an error message during trying to use grid_terrain() function. For me, it is really important to keep the lowest values due to I am trying to avoid to get artifacts due to really step ditches in the rural Netherland landscape. If I set keep_lowest to TRUE I get an error.

las=readLAS("205000_600000_ground.las")
grid_terrain(las, res = 2.5, knnidw(), keep_lowest = TRUE)

The error:

Error in lazyeval::f_capture(func) : Promise has already been forced
@Jean-Romain Jean-Romain self-assigned this Jan 24, 2019
@Jean-Romain Jean-Romain added the Bug A bug in the package label Jan 24, 2019
@Jean-Romain
Copy link
Collaborator

Jean-Romain commented Jan 24, 2019

That one was easy! Thanks for reporting. It is fixed. I will release lidR 2.0.1 on Feb 2nd but you can install from github.

Also please always try to reproduce error with a dataset given in the package first. It is easier to me. If it does not work with the data provided it is usually an simple error in the code. If it does not work only with your dataset it is likely to be a nasty issue like your other issue.

library(lidR)
LASfile <- system.file("extdata", "Topography.laz", package="lidR")
las = readLAS(LASfile)
grid_terrain(las, res = 2.5, knnidw(), keep_lowest = TRUE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in the package
Projects
None yet
Development

No branches or pull requests

2 participants