[GRASS-SVN] r61943 - grass/trunk/vector/v.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 14 06:37:13 PDT 2014


Author: mmetz
Date: 2014-09-14 06:37:13 -0700 (Sun, 14 Sep 2014)
New Revision: 61943

Modified:
   grass/trunk/vector/v.distance/distance.c
Log:
v.distance: fix z coordinate

Modified: grass/trunk/vector/v.distance/distance.c
===================================================================
--- grass/trunk/vector/v.distance/distance.c	2014-09-14 02:28:48 UTC (rev 61942)
+++ grass/trunk/vector/v.distance/distance.c	2014-09-14 13:37:13 UTC (rev 61943)
@@ -78,10 +78,12 @@
     *ty = TPoints->y[0];
     *tz = TPoints->z[0];
 
+    tmp_z = 0;
+
     /* point -> point */
     if ((ftype & GV_POINTS) && (ttype & GV_POINTS)) {
 	Vect_line_distance(TPoints, FPoints->x[0], FPoints->y[0],
-			   FPoints->z[0], with_z, tx, ty,tz, dist, 
+			   FPoints->z[0], with_z, tx, ty, tz, dist, 
 			   NULL, talong);
     }
 



More information about the grass-commit mailing list