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
geometry_features() with filter keep_ground() does not work #45
Comments
while it works when dropping ground for the testfile above, I just experienced that this also does not work for one of my files... |
It would be much more efficient to do (and it works) pipeline = reader_las(filter = keep_ground()) + geometry_features(k = 15 , features = "lps") + write_las()
ans <- geometrics(pipeline, f) Yet, your use case is valid. I confirm the problem. |
Ah yes, because the reader is able to read the header and then only these parts of the data? Would it, just in theory, be possible to evaluate the pipeline on execution and then automatically apply an appropriate filter to read only necessary data? |
The Btw with this bug you found a big issue with |
I made some modifications
PS: please open an issue for feature request about what we talked about few days ago. Something about local maximum and local metrics. Your help is invaluable for the development of lasR. I own you that if it can help you. Please describe accurately what you are expecting and how you think it should work. |
Is there a reason the filter is not implemented for Lets say I want to iteratively classify points on linearity, remove points with low likelyhood and classify again based on remaining points (something like |
Excellent question. I forgot to talk about that in my previous message. Yes there is a reason. Imagine you do reader_las() + geometry_features(k = 15 , features = "lps", filter = keep_ground()) + write_las() You want to read all the points but apply the geometry computation only on ground points. Thus, ground points will gain valid geometric values and other points will gain Now, your use case is interesting and reaches the limits of the possibilities. I'm opened to suggestions. |
Yeah you are right, this might be confusing
In my use case above the only feature is
Is it this? |
Absolutely
Excellent question. I'm checking in the source code... and yes this is correct. I added some notes in the documentation to make it clear. |
I tried to calc some geometric features and experienced that this works without prior filtering and also when dropping ground points, but keeping just ground points it does not work. R simply processes forever.
The text was updated successfully, but these errors were encountered: