[GRASS-SVN] r67160 - grass/trunk/vector/v.in.lidar

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 15 14:09:34 PST 2015


Author: wenzeslaus
Date: 2015-12-15 14:09:34 -0800 (Tue, 15 Dec 2015)
New Revision: 67160

Modified:
   grass/trunk/vector/v.in.lidar/main.c
Log:
v.in.lidar: fix counting of points at the beginning

When both offset and preserve were active, preserve
was one point higher causing the don't trust the
numbers warning.


Modified: grass/trunk/vector/v.in.lidar/main.c
===================================================================
--- grass/trunk/vector/v.in.lidar/main.c	2015-12-15 22:03:52 UTC (rev 67159)
+++ grass/trunk/vector/v.in.lidar/main.c	2015-12-15 22:09:34 UTC (rev 67160)
@@ -1011,11 +1011,13 @@
             }
         }
         if (offset_n) {
-            offset_n_counter++;
-            if (offset_n_counter < offset_n)
+            if (offset_n_counter < offset_n) {
+                offset_n_counter++;
                 continue;
-            else
+            }
+            else {
                 offset_n = 0;  /* disable offset check */
+            }
         }
         if (skip_every) {
             every_counter++;



More information about the grass-commit mailing list