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

francesco francesco.pirotti at unipd.it
Mon Apr 4 08:05:37 EDT 2011


Thanks for all answers.
@David - my version is 1.5.5 should be quite recent.
Anyhow the problem was easily solved by changing the code in header.cpp
Ciao
Francesco

Il 03/04/2011 16:48, Finnegan, David ERDC-CRREL-NH ha scritto:
> 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 <mailto:francesco.pirotti at unipd.it>
> Phone: +39 049 827 2710
> Phone: +39 349 55 39 261
> **************************************************


-- 
**************************************************
*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/20110404/aa17826c/attachment.html


More information about the Liblas-devel mailing list