<br><br><div class="gmail_quote">2008/12/16 Martin Vales <span dir="ltr">&lt;<a href="mailto:martinvales00@gmail.com">martinvales00@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="gmail_quote"><div class="gmail_quote"><div class="Ih2E3d"><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I am using libLAS via the .NET bindings.<br>
<br>
When I make the following calls:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;byte lasVersionMajor = lasReader.GetHeader().VersionMajor;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; byte lasVersionMinor = lasReader.GetHeader().VersionMinor;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ((lasVersionMajor != 1) || (lasVersionMinor &gt; 1)) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw new DataFlowException(&quot;Incompatible file version. This reader supports v1.0 and v1.1 LAS files only.&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
<br>
I sometimes get zeros for VersionMajor and VersionMinor, other times the same file works fine and these version numbers are correct.&nbsp; Any ideas why these calls do not return consistent results?</blockquote></div></div><div>
<br>
Yes, this sounds very strange. I will try it this night.<br>
</div><div class="Ih2E3d"><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"></blockquote></div></div></div></div></blockquote><div><br>Steve. It try read the same file several times and i get the same result. Can you explain more the problem with some kind of sample please. <br>
Sometimes in .NET i get different results in differents calls. Perhaps .NET have a dark side hehe.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="gmail_quote"><div class="Ih2E3d"><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Thanks<br>
Steve<br>
************************<br>
Steve Harwin<br>
Senior Software Engineer<br>
Eonfusion &amp; Landscape Mapper<br>
Myriax Pty Ltd<br>
<br>
_______________________________________________<br>
Liblas-devel mailing list<br>
<a href="mailto:Liblas-devel@lists.osgeo.org" target="_blank">Liblas-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/liblas-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/liblas-devel</a><br>
</blockquote></div></div></div><br>
</div><br>
</blockquote></div><br>