[Liblas-devel] Reserved/Global encoding issue
Ian Collins
ian.collins at terrapoint.com
Fri Dec 10 12:05:55 EST 2010
Hello,
With LAS v1.2, the 2 "reserved" bytes in the header are now used for
global encoding bits. If I open an LAS 1.2 file with global encoding of
1, this value will not be preserved if I write out the file. There is an
issue in the Header::read() method in header.cpp.
// 3. Reserved
// This data must always contain Zeros.
read_n(n2, m_ifs, sizeof(n2));
Should it also set the header right after the read?
m_header->SetReserved(n2);
Thanks,
Ian Collins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20101210/3af3669b/attachment.html
More information about the Liblas-devel
mailing list