Browse Source

v.to.points: Don't interpolate for use=node according to the manual

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70589 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 8 years ago
parent
commit
f366b8b37d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vector/v.to.points/write.c

+ 1 - 1
vector/v.to.points/write.c

@@ -84,7 +84,7 @@ void write_line(struct Map_info *Out, struct line_pnts *LPoints, int cat,
 		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;