[Liblas-commits] r1164 - trunk/apps

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Apr 3 10:26:18 EDT 2009


Author: mloskot
Date: Fri Apr  3 10:26:17 2009
New Revision: 1164
URL: http://liblas.org/changeset/1164

Log:
Additional fix for ticket #122 missing in commit r1162.

Modified:
   trunk/apps/las2las.c

Modified: trunk/apps/las2las.c
==============================================================================
--- trunk/apps/las2las.c	(original)
+++ trunk/apps/las2las.c	Fri Apr  3 10:26:17 2009
@@ -739,7 +739,11 @@
             p = LASReader_GetNextPoint(reader);
             continue;
         }
-        if (elim_class && ( elim_class == LASPoint_GetClassification(p)))
+
+        clsidx = LASPoint_GetClassification(p);
+        clsidx = (clsidx & 31); // 31 is max index in classification lookup table
+        assert(clsidx <= 31);
+        if (elim_class && (elim_class == clsidx))
         {
             p = LASReader_GetNextPoint(reader);
             continue;


More information about the Liblas-commits mailing list