[GRASS-SVN] r42423 - grass/trunk/raster/r.reclass
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jun 1 15:59:30 EDT 2010
Author: martinl
Date: 2010-06-01 15:59:30 -0400 (Tue, 01 Jun 2010)
New Revision: 42423
Modified:
grass/trunk/raster/r.reclass/main.c
Log:
r.reclass: 'rules' as required parameter, '-' to read from stdin
Modified: grass/trunk/raster/r.reclass/main.c
===================================================================
--- grass/trunk/raster/r.reclass/main.c 2010-06-01 19:25:01 UTC (rev 42422)
+++ grass/trunk/raster/r.reclass/main.c 2010-06-01 19:59:30 UTC (rev 42423)
@@ -7,7 +7,7 @@
* Hamish Bowman <hamish_b yahoo.com>, Jan-Oliver Wagner <jan intevation.de>,
* Markus Neteler <neteler itc.it>
* PURPOSE:
- * COPYRIGHT: (C) 1999-2006 by the GRASS Development Team
+ * COPYRIGHT: (C) 1999-2006, 2010 by the GRASS Development Team
*
* This program is free software under the GNU General Public
* License (>=v2). Read the file COPYING that comes with GRASS
@@ -48,24 +48,23 @@
module = G_define_module();
G_add_keyword(_("raster"));
+ G_add_keyword(_("reclassification"));
+ module->label = _("Reclassify raster map based on category values.");
module->description =
- _("Creates a new map layer whose category values are based "
+ _("Creates a new raster map whose category values are based "
"upon a reclassification of the categories in an existing "
- "raster map layer.");
+ "raster map.");
parm.input = G_define_standard_option(G_OPT_R_INPUT);
- parm.input->description = _("Raster map to be reclassified");
-
+ parm.input->description = _("Name of raster map to be reclassified");
+
parm.output = G_define_standard_option(G_OPT_R_OUTPUT);
-
- parm.rules = G_define_option();
+
+ parm.rules = G_define_standard_option(G_OPT_F_INPUT);
parm.rules->key = "rules";
- parm.rules->type = TYPE_STRING;
- parm.rules->description = _("File containing reclass rules; \"-\" to read from stdin");
- parm.rules->key_desc = "name";
- parm.rules->gisprompt = "old_file,file,input";
- parm.rules->answer = "-";
-
+ parm.rules->label = _("File containing reclass rules");
+ parm.rules->description = _("\"-\" to read from stdin");
+
parm.title = G_define_option();
parm.title->key = "title";
parm.title->required = NO;
More information about the grass-commit
mailing list