jblindsay / whitebox-tools

An advanced geospatial data analysis platform
https://www.whiteboxgeo.com/
MIT License
964 stars 160 forks source link

whitebox clip function corrupting output file #200

Open arojas314 opened 3 years ago

arojas314 commented 3 years ago

Description

After using the whitebox tools clip function in python, the output lidar file seems to be corrupted. I am unable to attach the zipped folder with my data since it exceeds 25mb. Here is an example error message I get when viewing the output file in lastools. 'chunk table and XXXXXXXXXX bytes are missing' is the common error message from the output file.

image

What I Did

wbt.clip_lidar_to_polygon(
    i="NEON_D01_HARV_DP1_732000_4713000_classified_point_cloud_colorized.laz", 
    polygons="towerPoly.shp", 
    output="lidarAOI.laz"
)

Thanks!

jblindsay commented 3 years ago

I'm curious if you convert the file to a LAS files, does the tool work as expected? I'm wondering if this is a LAZ issue or if it is within the tool.

arojas314 commented 3 years ago

I just confirmed that it seems to run fine using a .las file.

jblindsay commented 3 years ago

Are you able to post the data somewhere, like Google Drive, to share it with me? It's difficult to resolve the issue without being able to replicate it.

Afrancioni commented 2 years ago

@arojas314 are you able to post the data to a GoogleDrive/DropBox location. If not, I am afraid I will have to close this issue.