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

Steve Harwin SteveH at myriax.com
Tue Dec 16 00:04:39 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?

Thanks
Steve
************************
Steve Harwin
Senior Software Engineer
Eonfusion & Landscape Mapper
Myriax Pty Ltd 



More information about the Liblas-devel mailing list