[Liblas-devel] Reserved/Global encoding issue
Howard Butler
hobu.inc at gmail.com
Fri Dec 10 15:00:10 EST 2010
On Dec 10, 2010, at 11:05 AM, Ian Collins wrote:
> 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?
Absolutely. This is a bug. <http://trac.liblas.org/ticket/196>
Thank you for the report, and I hope you are otherwise having success with libLAS!
Howard
More information about the Liblas-devel
mailing list