whitebox-tools icon indicating copy to clipboard operation
whitebox-tools copied to clipboard

whitebox clip function corrupting output file

Open arojas314 opened this issue 3 years ago • 4 comments

  • whitebox version: 2.0.3
  • Python version: 3.9
  • Operating System: RedHat Enterprise

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!

arojas314 avatar Oct 28 '21 02:10 arojas314

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.

jblindsay avatar Oct 28 '21 11:10 jblindsay

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

arojas314 avatar Oct 29 '21 01:10 arojas314

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.

jblindsay avatar Oct 31 '21 12:10 jblindsay

@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.

Afrancioni avatar Dec 29 '21 14:12 Afrancioni