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

HeightAboveGround tool produces invalid geotiff #212

Open
mpickering opened this issue Dec 11, 2021 · 4 comments
Open

HeightAboveGround tool produces invalid geotiff #212

mpickering opened this issue Dec 11, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@mpickering
Copy link

I am running the HeightAboveGround command with standard las file (which works for other tools) but the produced geotiff is invalid.

When opened in GIMP it reports "Not a TIFF or MDI file, bad magic number 16716.

My exact command is:

"whitebox_tools" -v --run=HeightAboveGround --input="/home/matt/win-hill-lidar/P_10684/SK1585_P_10684_20210316_20210317.las" --output="/home/matt/win-hill-lidar/height.tif"

I can provide the .laz file if you can't reproduce without it.

@jblindsay
Copy link
Owner

Sure, if you can send me the LiDAR point cloud file, that would be helpful for diagnosing the issue.

@mpickering
Copy link
Author

Can you try this link?

I am not sure if it will expire or is unique to me.

@jblindsay
Copy link
Owner

I've downloaded the file and can confirm that the TIFF file that is created by the HeightAboveGround tool cannot be opened in QGIS. I'll need to dig a little further into it to see what is happening.

@Afrancioni Afrancioni added the bug Something isn't working label Dec 29, 2021
@jfbourdon
Copy link
Contributor

This tool ouputs a lidar file rather than a raster hence the invalid TIFF.

That being said, there is a separate issue, at least with this file, because the resulting LAS file doesn't seem to be correctly structured. lasinfo from LAStools is reporting all sort of weird values with a probable mismatch between what the header contains and what the rest of the file contains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants