[GRASS-SVN] r69477 - grass/trunk/raster3d/r3.to.rast

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 13 16:45:47 PDT 2016


Author: wenzeslaus
Date: 2016-09-13 16:45:47 -0700 (Tue, 13 Sep 2016)
New Revision: 69477

Modified:
   grass/trunk/raster3d/r3.to.rast/main.c
Log:
r3.to.rast: report percentage by depth, not 0-100 for each depth

Modified: grass/trunk/raster3d/r3.to.rast/main.c
===================================================================
--- grass/trunk/raster3d/r3.to.rast/main.c	2016-09-13 21:12:02 UTC (rev 69476)
+++ grass/trunk/raster3d/r3.to.rast/main.c	2016-09-13 23:45:47 UTC (rev 69477)
@@ -178,8 +178,8 @@
     /*Every Rastermap */
     for (z = 0; z < depths; z++) { /*From the bottom to the top */
         G_debug(2, "Writing raster map %d of %d", z + 1, depths);
+        G_percent(z, depths - 1, 2);
         for (y = 0; y < rows; y++) {
-            G_percent(y, rows - 1, 10);
             ptr = cell;  /* reset at the beginning of a row */
             for (x = 0; x < cols; x++) {
                 if (typeIntern == FCELL_TYPE) {
@@ -210,6 +210,7 @@
         G_debug(2, "Finished writing map %d.", z + 1);
         pos++;
     }
+    G_percent(1, 1, 1);
     G_free(cell);
 
 }



More information about the grass-commit mailing list