[GRASS-SVN] r70589 - grass/trunk/vector/v.to.points

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 15 12:43:13 PST 2017


Author: hcho
Date: 2017-02-15 12:43:13 -0800 (Wed, 15 Feb 2017)
New Revision: 70589

Modified:
   grass/trunk/vector/v.to.points/write.c
Log:
v.to.points: Don't interpolate for use=node according to the manual

Modified: grass/trunk/vector/v.to.points/write.c
===================================================================
--- grass/trunk/vector/v.to.points/write.c	2017-02-15 17:17:51 UTC (rev 70588)
+++ grass/trunk/vector/v.to.points/write.c	2017-02-15 20:43:13 UTC (rev 70589)
@@ -84,7 +84,7 @@
 		len = hypot(hypot(dx, dy), dz);
 
 		/* interpolate segment */
-		if (interpolate && vert < (LPoints->n_points - 1)) {
+		if (vertex == GV_VERTEX && interpolate) {
 		    int i, n;
 		    double x, y, z, dlen;
 



More information about the grass-commit mailing list