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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 6 08:57:06 EST 2012


Author: huhabla
Date: 2012-02-06 05:57:05 -0800 (Mon, 06 Feb 2012)
New Revision: 50696

Modified:
   grass/trunk/raster/r.rescale/main.c
Log:
Enable multiple support for the "from" and "to" option, since 2 integer values must be provided and otherwise the generated wps process description is wrong.


Modified: grass/trunk/raster/r.rescale/main.c
===================================================================
--- grass/trunk/raster/r.rescale/main.c	2012-02-06 13:27:08 UTC (rev 50695)
+++ grass/trunk/raster/r.rescale/main.c	2012-02-06 13:57:05 UTC (rev 50696)
@@ -64,6 +64,7 @@
     parm.from->key_desc = "min,max";
     parm.from->type = TYPE_INTEGER;
     parm.from->required = NO;
+    parm.from->multiple = YES;
     parm.from->description =
 	_("The input data range to be rescaled (default: full range of input map)");
 
@@ -79,6 +80,7 @@
     parm.to->key_desc = "min,max";
     parm.to->type = TYPE_INTEGER;
     parm.to->required = YES;
+    parm.to->multiple = YES;
     parm.to->description = _("The output data range");
 
     parm.title = G_define_option();



More information about the grass-commit mailing list