Dear friends of LAZ,
Once last year I used a USB stick to copy some LAZ files from one computer to another and somehow this did corrupt one or more bits in the LAZ file, which resulted - after decompression - in a LAS file that was both shortened as well as contained a number of invalid points at the end. This was easily noticed with lasinfo and lasvalidate ...
This seems a rather rare occurance as it has not happened since (and i am constantly copying LAZ files across a smorgasboard of computers). But in theory this could even happen if the file on disk was correct due to a load (aka bus) error ...
However ... it would be possible to add a sanity check to LASzip that notices such corruptions and warns about them. So i am wondering ... is this an issue in practise and if yes how wshould such an error be treated and what sort of validation tools would be useful to you?
Regards,
Martin @rapidlasso
PS: Check out (or even better add your thoughts to) the comment section of http://rapidlasso.com/2014/11/06/keeping-esri-honest/ ... (-;
We contract with LIDAR suppliers. I had proposed that we use overnight FTP transfers of compressed LAS with file checksum like RAR. The vendors resisted the RAR step before FTP as the compression task was not in original contract writing. We have gotten some rare errors during these FTP uploads. Our vendors squeal a bit when asked to resend. I am rewriting our delivery spec now and it is time for us to smarten up and use a double-duty compression like LAZ with this proposed built-in file sanity checker... (If it is very fast.) A simple checksum-style failure message would be adequate for us. Our work flow currently begins with lasboundary.
--
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
--
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


> On Nov 8, 2014, at 2:10 PM, Martin Isenburg <martin....@gmail.com> wrote:
>
> However ... it would be possible to add a sanity check to LASzip that notices such corruptions and warns about them. So i am wondering ... is this an issue in practise and if yes how wshould such an error be treated and what sort of validation tools would be useful to you?
In my opinion, this feature would be desirable in a future LAZ revision as long as its implementation doesn't end up being too complicated. It would be especially helpful for those of us doing network'y LAZ stuff to have a standard way to verify things rather than crafting up our own thing.
Howard
--
--
You are subscribed to "The LAS room - a friendly place to discuss the the LAS or LAZ formats" for those who want to see LAS or LAZ succeed as open standards. Go on record with bug reports, suggestions, and concerns about current and proposed specifications.
Visit this group at http://groups.google.com/group/lasroom
Post to this group with an email to las...@googlegroups.com
Unsubscribe by email to lasroom+u...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "The LAS room - a friendly place to discuss the LAS and LAZ formats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lasroom+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
We send around data in LAZ format frequently as well, and as the data is frequently transferred by FTP-like uploads, we do get the odd error every now and then that an uploaded file was incomplete. It would be of great help if an option is added to skip extracting the LAZ if it is noticed to be corrupt. A warning message usually doesn’t work for us, as we transfer many files at the same time (tiled data, thousands of LAZ files), so warning messages are simply missed as the files are extracted in batch mode.
A completely missing LAS file is easier to detect then a LAS file that is present but has points missing. I am not sure if laszip is currently skipping corrupt files at the moment as I haven’t come across corrupt LAZ files for a while now, so this request might be outdated already.
Kind regards,
Fugro Geospatial B.V.
Arnout Angenent
Processing Supervisor
T +31 (0)70 31 70780 | M +31 (0)6 29 53 75 04 | F +31 (0)70 31 70750
a.ang...@fugro.com | www.fugrogeospatial.com
Dillenburgsingel 69, 2263 HW Leidschendam | P.O. Box 3000, 2260 DA Leidschendam, The Netherlands
Trade Register nr 27152156 | VAT nr NL005621409B29
--
To answer two of your rhetorical questions in interleaved mode:1. a flipped bit may mean a wrong height (or position) in a las file, but a totally corrupted laz file.
2. A flipped bit in las will (usually) not imply a wrong point count. In laz it may or may not.
From what you write later it seems like 50K points is the block size, this corresponds to (usually) 100-300KB of laz data, right?
If it is less than a couple of MB when decoded, then I would suggest you simply default to decoding a full block at once, and immediately signal if any errors are found
Hello,
thank you for the useful feedback. Everybody seems to want some form of sanity checking. Let me summarize the most common feedbacks.
(1) Everbody wants a tool that can validate the integrity of a LAZ file.
Here my proposed solution: We can monitor the internal state of the LASzip compressor and judge whether all assertions are met. This will not always immediately catch an error during decompression (e.g. we may decompress another 10000 - 50000 corrupt points before noticing the invalid decompressor state) but it will always be able to tell whether a file contains corrupted areas or not. This can simply be implemented with a '-test' option for laszip and the same check can also be added to the outputs of lasvalidate and lasinfo (only in case of failures).