[GRASS-SVN] r57927 - in grass/branches/develbranch_6/imagery: i.cluster i.gensig i.gensigset
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 3 15:16:56 PDT 2013
Author: neteler
Date: 2013-10-03 15:16:55 -0700 (Thu, 03 Oct 2013)
New Revision: 57927
Modified:
grass/branches/develbranch_6/imagery/i.cluster/main.c
grass/branches/develbranch_6/imagery/i.gensig/parse.c
grass/branches/develbranch_6/imagery/i.gensigset/parse.c
Log:
i.cluster, i.gensig, i.gensigset: make signature list browseable
Modified: grass/branches/develbranch_6/imagery/i.cluster/main.c
===================================================================
--- grass/branches/develbranch_6/imagery/i.cluster/main.c 2013-10-03 22:16:14 UTC (rev 57926)
+++ grass/branches/develbranch_6/imagery/i.cluster/main.c 2013-10-03 22:16:55 UTC (rev 57927)
@@ -94,6 +94,7 @@
parm.out_sig->type = TYPE_STRING;
parm.out_sig->key_desc = "name";
parm.out_sig->required = YES;
+ parm.out_sig->gisprompt = "old,sig,sigfile";
parm.out_sig->description = _("Name for output file containing result signatures");
parm.class = G_define_option();
Modified: grass/branches/develbranch_6/imagery/i.gensig/parse.c
===================================================================
--- grass/branches/develbranch_6/imagery/i.gensig/parse.c 2013-10-03 22:16:14 UTC (rev 57926)
+++ grass/branches/develbranch_6/imagery/i.gensig/parse.c 2013-10-03 22:16:55 UTC (rev 57927)
@@ -19,9 +19,11 @@
sigfile = G_define_option();
sigfile->key = "signaturefile";
+ sigfile->type = TYPE_STRING;
+ sigfile->key_desc = "name";
+ sigfile->required = YES;
+ sigfile->gisprompt = "old,sig,sigfile";
sigfile->description = _("Name for output file containing result signatures");
- sigfile->required = YES;
- sigfile->type = TYPE_STRING;
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
Modified: grass/branches/develbranch_6/imagery/i.gensigset/parse.c
===================================================================
--- grass/branches/develbranch_6/imagery/i.gensigset/parse.c 2013-10-03 22:16:14 UTC (rev 57926)
+++ grass/branches/develbranch_6/imagery/i.gensigset/parse.c 2013-10-03 22:16:55 UTC (rev 57927)
@@ -11,16 +11,18 @@
trainingmap = G_define_standard_option(G_OPT_R_MAP);
trainingmap->key = "trainingmap";
trainingmap->description = _("Ground truth training map");
-
+
group = G_define_standard_option(G_OPT_I_GROUP);
subgroup = G_define_standard_option(G_OPT_I_SUBGROUP);
sigfile = G_define_option();
sigfile->key = "signaturefile";
+ sigfile->type = TYPE_STRING;
+ sigfile->key_desc = "name";
+ sigfile->required = YES;
+ sigfile->gisprompt = "old,sig,sigfile";
sigfile->description = _("Name for output file containing result signatures");
- sigfile->required = YES;
- sigfile->type = TYPE_STRING;
maxsig = G_define_option();
maxsig->key = "maxsig";
More information about the grass-commit
mailing list