瀏覽代碼

r.reclass: 'rules' as required parameter, '-' to read from stdin

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42423 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 年之前
父節點
當前提交
108b3ee77b
共有 1 個文件被更改,包括 12 次插入13 次删除
  1. 12 13
      raster/r.reclass/main.c

+ 12 - 13
raster/r.reclass/main.c

@@ -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 @@ int main(int argc, char *argv[])
 
     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;