[GRASS-SVN] r54322 - grass/trunk/raster/r.rescale.eq

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 17 05:38:20 PST 2012


Author: neteler
Date: 2012-12-17 05:38:19 -0800 (Mon, 17 Dec 2012)
New Revision: 54322

Modified:
   grass/trunk/raster/r.rescale.eq/main.c
Log:
apply r45358 also here, fixes trac #1836

Modified: grass/trunk/raster/r.rescale.eq/main.c
===================================================================
--- grass/trunk/raster/r.rescale.eq/main.c	2012-12-17 13:33:42 UTC (rev 54321)
+++ grass/trunk/raster/r.rescale.eq/main.c	2012-12-17 13:38:19 UTC (rev 54322)
@@ -29,7 +29,8 @@
     char input[GNAME_MAX+8];
     char output[GNAME_MAX+8];
     char title[GPATH_MAX];
-    const char *args[5];
+    char rules[GNAME_MAX+8];
+    const char *args[6];
     struct Popen child;
     CELL old_min, old_max;
     CELL new_min, new_max;
@@ -130,11 +131,14 @@
     else
 	sprintf(title, "title=rescale of %s", old_name);
 
+    sprintf(rules, "rules=-");
+
     args[0] = "r.reclass";
     args[1] = input;
     args[2] = output;
     args[3] = title;
-    args[4] = NULL;
+    args[4] = rules; 
+    args[5] = NULL;
 
     fp = G_popen_write(&child, "r.reclass", args);
 



More information about the grass-commit mailing list