[pdal] Trouble Reading USGS LAZ files

Jim Klassen klassen.js at gmail.com
Tue May 30 06:34:51 PDT 2023


I'm having trouble reading several LAZ files from the USGS for the MN 2020+ collects.  Is there a way I can tell if the LAZ files are bad or if there is a PDAL bug?  Apparently the LAZ files in question can be opened and viewed in GlobalMapper.  My test is simply running 'pdal info' on the file.  I have tested with PDAL 2.3.0, 2.5.3, and 2.5.4, all built from source.

These files fail with:

"PDAL: readers.las: Extra byte specification exceeds point length beyond base format length."

<https://rockyweb.usgs.gov/vdelivery/Datasets/Staged/Elevation/LPC/Projects/MN_BeckerCounty_2021_D21/MN_BeckerCo_1_2021/LAZ/>https://rockyweb.usgs.gov/vdelivery/Datasets/Staged/Elevation/LPC/Projects/MN_BeckerCounty_2021_D21/MN_BeckerCo_1_2021/LAZ/

USGS_LPC_MN_BeckerCounty_2021_D21_264_5209.laz
USGS_LPC_MN_BeckerCounty_2021_D21_264_5210.laz
USGS_LPC_MN_BeckerCounty_2021_D21_265_5209.laz
USGS_LPC_MN_BeckerCounty_2021_D21_265_5210.laz

(The other 3951 in the directory read fine).


And these files fail with either:

    "PDAL: Invalid version 1464 found in LAZ chunk table."
or
    "PDAL: Invalid version 1468 found in LAZ chunk table."

https://rockyweb.usgs.gov/vdelivery/Datasets/Staged/Elevation/LPC/Projects/MN_SE_Driftless_2021_B21/MN_SEDriftless_5_2021/LAZ/ <https://rockyweb.usgs.gov/vdelivery/Datasets/Staged/Elevation/LPC/Projects/MN_SE_Driftless_2021_B21/MN_SEDriftless_5_2021/LAZ/>

USGS_LPC_MN_SE_Driftless_2021_B21_4195_49005.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4200_49035.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4230_49005.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4255_49155.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4260_49190.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4260_49230.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4265_49070.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4265_49210.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4270_49230.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4275_49080.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4285_49305.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4300_49290.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4365_49200.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4375_48995.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4385_49065.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4385_49225.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4385_49230.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4385_49330.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4405_49310.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4415_49280.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4440_48945.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4440_49145.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4445_49250.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4475_49125.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4480_49125.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4515_49005.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4520_49215.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4535_49285.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4540_49120.laz
USGS_LPC_MN_SE_Driftless_2021_B21_4575_49205.laz

(The other 5447 files in the directory read fine).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20230530/fdfa9124/attachment.htm>


More information about the pdal mailing list