[Liblas-devel] LAS header major and minor version number

Martin Vales martinvales00 at gmail.com
Tue Dec 16 17:58:31 EST 2008


2008/12/16 Martin Vales <martinvales00 at gmail.com>

>
>
> Hi,
>>
>> I am using libLAS via the .NET bindings.
>>
>> When I make the following calls:
>>                byte lasVersionMajor = lasReader.GetHeader().VersionMajor;
>>             byte lasVersionMinor = lasReader.GetHeader().VersionMinor;
>>             if ((lasVersionMajor != 1) || (lasVersionMinor > 1)) {
>>                  throw new DataFlowException("Incompatible file version.
>> This reader supports v1.0 and v1.1 LAS files only.");
>>             }
>>
>> I sometimes get zeros for VersionMajor and VersionMinor, other times the
>> same file works fine and these version numbers are correct.  Any ideas why
>> these calls do not return consistent results?
>
>
> Yes, this sounds very strange. I will try it this night.
>
>>
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.
Sometimes in .NET i get different results in differents calls. Perhaps .NET
have a dark side hehe.

>
>>
>> Thanks
>> Steve
>> ************************
>> Steve Harwin
>> Senior Software Engineer
>> Eonfusion & Landscape Mapper
>> Myriax Pty Ltd
>>
>> _______________________________________________
>> Liblas-devel mailing list
>> Liblas-devel at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/liblas-devel
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20081216/3a3f57ee/attachment.html


More information about the Liblas-devel mailing list