فهرست منبع

r.carve: Add points closest to the center of each stream grid rather than adding each vertex multiple times at the same location

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65166 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 10 سال پیش
والد
کامیت
9907b19018
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      raster/r.carve/enforce_ds.c

+ 1 - 1
raster/r.carve/enforce_ds.c

@@ -508,7 +508,7 @@ static void process_line_segment(const int npts, void *rbuf,
 
 		    /* Add point to output vector map */
 		    if (parm->outvect->answer) {
-			Vect_append_point(points, pgxypts[i][0], pgxypts[i][1],
+			Vect_append_point(points, cellx, celly,
 					  elev - parm->sdepth);
 			Vect_write_line(outMap, GV_POINT, points, cats);
 		    }