<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Then I have to download the main release :-) my code has (I go from
memory)<br>
if(v > 366 ) <br>
.....<br>
Francesco<br>
<br>
<blockquote
cite="mid:BANLkTimzWmAVJ83DYrBvVtLQmLr6U++rVA@mail.gmail.com"
type="cite">
<pre wrap="">But it should be fixed in the main release. I see a Y10K bug looming ... (-;
337        void Header::SetCreationYear(uint16_t v)
338        {
339         // mloskot: I've taken these values arbitrarily
340         if (v > 9999)
341         throw std::out_of_range("year out of range");
342        
343         m_createYear = v;
344        }
in many data sets from <a class="moz-txt-link-freetext" href="http://liblas.org/samples">http://liblas.org/samples</a> the creation day /
year is not set anyways
lasinfo -i autzen-colorized-1.2-3.laz -no_check -stdout | grep creation
file creation day/year: 0/0
lasinfo -i TO_core_last.laz -no_check -stdout | grep creation
file creation day/year: 0/0
lasinfo -i SerpentMoundModelLASData.laz -no_check -stdout | grep creation
file creation day/year: 0/0
lasinfo -i TO_core_last.laz -no_check -stdout | grep creation
file creation day/year: 0/0
lasinfo -i TO_core_last.laz -no_check -stdout | grep creation
file creation day/year: 0/0
lasinfo -i IowaDNR-CloudPeakSoft-1.0-UTM15N.laz -no_check -stdout |
grep creation
file creation day/year: 0/0
On Mon, Apr 4, 2011 at 5:05 AM, francesco <a class="moz-txt-link-rfc2396E" href="mailto:francesco.pirotti@unipd.it"><francesco.pirotti@unipd.it></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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: <a class="moz-txt-link-abbreviated" href="mailto:liblas-devel-bounces@lists.osgeo.org">liblas-devel-bounces@lists.osgeo.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:liblas-devel-bounces@lists.osgeo.org"><liblas-devel-bounces@lists.osgeo.org></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:liblas-devel@lists.osgeo.org">liblas-devel@lists.osgeo.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:liblas-devel@lists.osgeo.org"><liblas-devel@lists.osgeo.org></a>
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: <a class="moz-txt-link-freetext" href="http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm">http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm</a>
Email: <a class="moz-txt-link-abbreviated" href="mailto:francesco.pirotti@unipd.it">francesco.pirotti@unipd.it</a>
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: <a class="moz-txt-link-freetext" href="http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm">http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm</a>
Email: <a class="moz-txt-link-abbreviated" href="mailto:francesco.pirotti@unipd.it">francesco.pirotti@unipd.it</a>
Phone: +39 049 827 2710
Phone: +39 349 55 39 261
**************************************************
_______________________________________________
Liblas-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Liblas-devel@lists.osgeo.org">Liblas-devel@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/liblas-devel">http://lists.osgeo.org/mailman/listinfo/liblas-devel</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<font face="Arial, Helvetica, sans-serif" size="-1">
**************************************************<br>
<b>Francesco Pirotti</b> <br>
Dep. TESAF <br>
CIRGEO – Interdepartmental Research Center on Cartography
Photogrammetry <br>
Remote Sensing and G.I.S. <br>
University of Padova <br>
Web: <a
href="http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm">http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm</a>
<br>
Email: <a href="mailto:francesco.pirotti@unipd.it">francesco.pirotti@unipd.it</a>
<br>
Phone: +39 049 827 2710 <br>
Phone: +39 349 55 39 261<br>
**************************************************
</font></div>
</body>
</html>