-
Notifications
You must be signed in to change notification settings - Fork 68
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
LidarElevationSlice isn't slicing #5
Comments
@GeospatialPython Thanks for reporting the issue! I just tested the LidarElevationSlice tool using a sample LiDAR dataset (St. Elis Mountains and Gulf of Alaska) and I can confirm that the tool seems to export the entire file, not a slice. I am copying Dr. John Lindsay (@jblindsay) on this issue to see if he can look into the source code and fix the issue. Thanks! |
I've set the tool up so that if you set the For now, I'd suggest setting these parameters to None; the tool should work as expected when this is done. That is, import whitebox
wbt = whitebox.WhiteboxTools()
wbt.set_working_dir(os.getcwd())
wbt.lidar_elevation_slice("test1.las", "test2.las", minz=3.0, maxz=5.0, cls=False, inclassval=None, outclassval=None) I've just committed a change to the tool such that the only way that it runs in classify mode is when the |
Thank you for the info. I'll try the repository version. I could see in the output that it was populating the class values with defaults so I instinctively tried the None approach. I just tried it again. The None values are still passed as strings to the binary so you get the following error:
|
@GeospatialPython The latest WhiteboxTools v0.14.0 has fixed the issue. Could you try again and let us know if you still have issues with the tool? Make sure you upgrade to whitebox v0.7.0:
|
I believe this issue has been resolved in the latest version. Therefore, I am closing the issue. Please reopen the issue if you still encounter issues. |
Description
Describe what you were trying to get done.
I have a small, 200 MB, colorized, indoor lidar point cloud of a conference room. I'm trying to extract a slice of it.
The lidar_info output is the following:
Tell us what happened, what went wrong, and what you expected to happen.
When I try to use the lidar_elevation_slice command, it outputs a file the exact same size and no points have been removed as far as I can tell.
What I Did
Here is the command I'm running:
The command-line output looks ok:
But I get the entire file and not a slice.
What am I doing wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered: