[GRASS-user] option multiple integer parameter problem

G. Allegri giohappy at gmail.com
Mon Sep 29 06:07:45 EDT 2008


Hi list,
I have some problems with integer type module parameters when the
multiple is set to true.
E.g. in r.univar_main.c:

param.percentile = G_define_option();
    param.percentile->key = "percentile";
    param.percentile->type = TYPE_INTEGER;
    param.percentile->required = NO;
    param.percentile->multiple = YES;
    param.percentile->options = "0-100";s
    param.percentile->answer = "90";
    param.percentile->description = _("Percentile to calculate
(requires extended statistics flag)");

the result is a flag box without text input. The textbox appears if I
remove the "multiple" parameter.

The same happens in bash scripts. Eg, if in v.rast.stats I set
"multiple" the textbox disappear...

Giovanni


More information about the grass-user mailing list