[pdal] 'pdal info' VLR error troubleshooting

Howard Butler howard at hobu.co
Wed May 10 07:40:08 PDT 2023



> On May 8, 2023, at 3:28 PM, Jim Klassen <klassen.js at gmail.com> wrote:
> 
> My preference is that PDAL exits with an error (causing $? <> 0) allowing the calling script/user to detect this and cleanup.  I suspect this is the current state of things.

The command line utilities return non-zero when an exception like this is thrown. It is up to the caller to react to it.

> If PDAL creates the output file and doesn't finish cleanly before the file is complete, maybe it would be safe for PDAL to delete the file.  Then the user wouldn't be left with a corrupt file, which might be a more obvious sign of an error.  I'm not sure how this would work for operations like tile that make many files or tindex that can append to an existing file, or to operations started from other programs using libpdal_*, or how this works if the output isn't to a local filesystem.

It seems fraught to try to guess what to do and then take an action. 



More information about the pdal mailing list