[GRASS-SVN] r49575 - grass/branches/develbranch_6/raster/r.grow.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 6 13:14:26 EST 2011


Author: martinl
Date: 2011-12-06 10:14:26 -0800 (Tue, 06 Dec 2011)
New Revision: 49575

Modified:
   grass/branches/develbranch_6/raster/r.grow.distance/main.c
Log:
r.grow.distance: add some progress info messages


Modified: grass/branches/develbranch_6/raster/r.grow.distance/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.grow.distance/main.c	2011-12-06 17:57:45 UTC (rev 49574)
+++ grass/branches/develbranch_6/raster/r.grow.distance/main.c	2011-12-06 18:14:26 UTC (rev 49575)
@@ -222,6 +222,7 @@
     G_set_c_null_value(old_x_row, ncols);
     G_set_c_null_value(old_y_row, ncols);
 
+    G_important_message(_("Reading input data..."));
     for (row = 0; row < nrows; row++) {
 	int irow = nrows - 1 - row;
 
@@ -261,14 +262,14 @@
 
 	swap_rows();
     }
+    G_percent(1, 1, 1);
 
-    G_percent(row, nrows, 2);
-
     G_close_cell(in_fd);
 
     G_set_c_null_value(old_x_row, ncols);
     G_set_c_null_value(old_y_row, ncols);
 
+    G_important_message(_("Writing output data..."));
     for (row = 0; row < nrows; row++) {
 	int irow = nrows - 1 - row;
 	off_t offset =
@@ -309,7 +310,7 @@
 	swap_rows();
     }
 
-    G_percent(row, nrows, 2);
+    G_percent(1, 1, 1);
 
     close(temp_fd);
     remove(temp_name);



More information about the grass-commit mailing list