[GRASS-SVN] r46520 - grass/trunk/vector/v.in.lidar
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 2 12:47:28 EDT 2011
Author: mmetz
Date: 2011-06-02 09:47:28 -0700 (Thu, 02 Jun 2011)
New Revision: 46520
Modified:
grass/trunk/vector/v.in.lidar/main.c
Log:
scale and offset (secretly) applied by libLAS
Modified: grass/trunk/vector/v.in.lidar/main.c
===================================================================
--- grass/trunk/vector/v.in.lidar/main.c 2011-06-02 13:13:49 UTC (rev 46519)
+++ grass/trunk/vector/v.in.lidar/main.c 2011-06-02 16:47:28 UTC (rev 46520)
@@ -602,10 +602,16 @@
Vect_reset_line(Points);
Vect_reset_cats(Cats);
+#if 0
x = LASPoint_GetX(LAS_point) * scale_x + offset_x;
y = LASPoint_GetY(LAS_point) * scale_y + offset_y;
z = LASPoint_GetZ(LAS_point) * scale_z + offset_z;
-
+#endif
+
+ x = LASPoint_GetX(LAS_point);
+ y = LASPoint_GetY(LAS_point);
+ z = LASPoint_GetZ(LAS_point);
+
if (spat_opt->answer || region_flag->answer) {
if (x < xmin || x > xmax || y < ymin || y > ymax) {
n_outside++;
More information about the grass-commit
mailing list