Hey Lastools
Recently we had to deliver a large dataset LAS data zipped to LAZ so we used laszip (recent release) to do this (makes sense, doesn’t it)
Before delivery we checked the complete LAZ dataset with lasinfo and could not find anomalies
Unfortunately the control party of the client reported us that the field ‘Point Data Record Format’ in the delivered LAZ files is wrong…
The LAS we created has Point Data Record Format = 1, I checked the header (with a hex viewer) and see indeed at position 104 (hex 68) the file contains a byte with value (hex) 01
I checked the LAZ created by laszip the same way and noticed that at position 104 in the file the byte now has value (hex) 81
Now I might be wrong… but I thought that laszip would keep the header of the LAS unchanged, allowing Laszip (or other code based on the laszip library) to be able to get the necessary basic information from the header needed to unzip the file. It seems the control party is using the same assumption here and comes to the conclusion our LAZ is wrong (and we would need to adjust this for the final delivery).
I checked the LAS and LAZ again, tested the LAS->LAZ and LAZ->LAS and checked lasinfo based on the LAS and the LAZ but it seems standard behavior to change point data record format 1 in LAS to 81 in LAZ
Below a screen capture of a binary comparison (Beyond Compare) between the LAS and LAZ header, differences are marked red, at byte 104 (hex 68) I placed and extra marker to show the issue.
Notice there are a few more differences (offset to point data and number of variable length records)
Question: Is this a bug or is this expected behavior of laszip/LAZ format ?
In the latter case, would you have some documentation we can send to the client to advise the control party to change their code
thanks
Luc

Kind regards,
Fugro Geospatial B.V.
ir. Luc Amoureus
R&D Manager
Telephone: +31 (0)70 31 70718 / Mobile: +31 (0)6 20 36 98 94 / Fax: +31 (0)70 31 70750
E-mail: l.amo...@fugro.com / Website: www.fugrogeospatial.com
Address: Dillenburgsingel 69, 2263 HW Leidschendam /
P.O. Box 3000, 2260 DA Leidschendam, The Netherlands
Trade Register Nr: 27152156 / VAT Nr: NL803757955B01
--
Download LAStools at
http://lastools.org
http://rapidlasso.com
Be social with LAStools at
http://facebook.com/LAStools
http://twitter.com/LAStools
http://linkedin.com/groups/LAStools-4408378
Manage your settings at
http://groups.google.com/group/lastools/subscribe