[Liblas-devel] liblas throwing an error upon wrong day of the year on "corrupt" LAS file

Finnegan, David ERDC-CRREL-NH David.Finnegan at usace.army.mil
Sun Apr 3 10:48:37 EDT 2011


Francesco,

What version of Riscan Pro are you using? The latest should be OK 
David C Finnegan 
Research Physical Scientist 
CRREL 
--------- 
Message sent via my BlackBerry Wireless Device 


________________________________

From: liblas-devel-bounces at lists.osgeo.org
<liblas-devel-bounces at lists.osgeo.org> 
To: liblas-devel at lists.osgeo.org <liblas-devel at lists.osgeo.org> 
Sent: Sun Apr 03 09:46:26 2011
Subject: [Liblas-devel] liblas throwing an error upon wrong day of the year
on "corrupt" LAS file 


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 
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/eea02063/attachment.html


More information about the Liblas-devel mailing list