From 0a6e2030c9ecb22b636f276293f2c45caa202739 Mon Sep 17 00:00:00 2001 From: Chris Foster Date: Mon, 20 Apr 2015 07:56:54 +1000 Subject: [PATCH] Fix las classification munging Sigh. Too late at night => broken release 0.3.0 --- src/las_io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/las_io.cpp b/src/las_io.cpp index d2eb81f8..b647b694 100644 --- a/src/las_io.cpp +++ b/src/las_io.cpp @@ -297,8 +297,8 @@ bool PointArray::loadLas(QString fileName, size_t maxPointCount, # endif *pointSourceId++ = point.point_source_ID; // Put flags back in classification byte to avoid memory bloat - *classification++ = point.classification & (point.synthetic_flag << 5) & - (point.keypoint_flag << 6) & (point.withheld_flag << 7); + *classification++ = point.classification | (point.synthetic_flag << 5) | + (point.keypoint_flag << 6) | (point.withheld_flag << 7); // Extract point RGB if (color) {