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

Martin Vales martinvales00 at gmail.com
Tue Dec 16 03:10:52 EST 2008


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 tonight.

>
>
> 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/dd3dafaf/attachment.html


More information about the Liblas-devel mailing list