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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 10 08:47:01 EST 2011


Author: mmetz
Date: 2011-02-10 05:47:01 -0800 (Thu, 10 Feb 2011)
New Revision: 45358

Modified:
   grass/trunk/raster/r.rescale/main.c
Log:
add missing required parameter

Modified: grass/trunk/raster/r.rescale/main.c
===================================================================
--- grass/trunk/raster/r.rescale/main.c	2011-02-10 07:00:50 UTC (rev 45357)
+++ grass/trunk/raster/r.rescale/main.c	2011-02-10 13:47:01 UTC (rev 45358)
@@ -23,8 +23,9 @@
 {
     char input[GNAME_MAX+8];
     char output[GNAME_MAX+8];
+    char rules[GNAME_MAX+8];
     char title[GPATH_MAX];
-    const char *args[5];
+    const char *args[6];
     struct Popen child;
     FILE *fp;
     long old_min, old_max;
@@ -124,11 +125,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