Explorar o código

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 %!s(int64=8) %!d(string=hai) anos
pai
achega
f366b8b37d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;