[Liblas-devel] libLAS 1.2.1 getting color by random access

Volker Wichmann wichmann at laserdata.at
Tue Jan 18 16:56:56 EST 2011


Hi,

I think there is a bug in libLAS 1.2.1 when retrieving point color by 
random access (green and blue are interchanged), reader12.cpp, line 334 ff:

detail::read_n(red, m_ifs, sizeof(uint16_t));
detail::read_n(blue, m_ifs, sizeof(uint16_t));
detail::read_n(green, m_ifs, sizeof(uint16_t));

I think this should read as

detail::read_n(red, m_ifs, sizeof(uint16_t));
detail::read_n(green, m_ifs, sizeof(uint16_t));
detail::read_n(blue, m_ifs, sizeof(uint16_t));

The same applies for lines 347 ff.


Best regards,
Volker




More information about the Liblas-devel mailing list