[Liblas-devel] liblas throwing an error upon wrong day of the year
on "corrupt" LAS file
francesco
francesco.pirotti at unipd.it
Sun Apr 3 10:46:26 EDT 2011
Hello, just thought I'd drop by a note regarding reading a
not-well-formed LAS file.
I am reading a file exported from RiScanPRO into LAS format, with a bad
day of the year tag on the header.
When reading with ReaderFactory -> CreateWithStream, Liblas throws an
error and exits upon reading the bad date.
So I hacked the liblas to send a message but not throw an error, so my
code keeps going. Am I an ignoramous coder and there are ways of
ignoring a thrown error somewhat, or isn't it better to keep from
throwing an error upon such non-fatal problem as a wrong date format?
(I hope I expressed myself correctly).
Cheers and thanks for your time,
Francesco
--
**************************************************
*Francesco Pirotti*
Dep. TESAF
CIRGEO -- Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.pirotti at unipd.it <mailto:francesco.pirotti at unipd.it>
Phone: +39 049 827 2710
Phone: +39 349 55 39 261
**************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20110403/05cdc194/attachment.html
More information about the Liblas-devel
mailing list