Skip to content

Commit

Permalink
Fix las classification munging
Browse files Browse the repository at this point in the history
Sigh.  Too late at night => broken release 0.3.0
  • Loading branch information
c42f committed Apr 19, 2015
1 parent 66b88de commit 0a6e203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/las_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 0a6e203

Please sign in to comment.