Parcourir la source

scale and offset (secretly) applied by libLAS

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46520 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz il y a 14 ans
Parent
commit
e5e5f72e97
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      vector/v.in.lidar/main.c

+ 7 - 1
vector/v.in.lidar/main.c

@@ -602,10 +602,16 @@ int main(int argc, char *argv[])
 	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++;