<br><div class="gmail_quote"><div class="gmail_quote"><div class="Ih2E3d"><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><br>
Yes, this sounds very strange. I will try it this tonight.<br>
</div><div class="Ih2E3d"><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><br>
</div><br>