[GRASS-dev] g.mapsets in G7

Glynn Clements glynn at gclements.plus.com
Sun Oct 24 10:41:50 EDT 2010


Martin Landa wrote:

> I would like to change the interface of g.mapsets in G7. Currently
> there are separate parameters to add, remove and set mapsets from
> search path. My suggestions is to have only two parameters:
> 
> mapsets - List of mapsets to add/remove/set
> option - add/remove/set
> 
> What do you think about that? Martin

One issue is that it creates a dependency between options, i.e. the
set of permitted values for one option vary depending upon the value
chosen for another option. None of those options currently provide a
list of valid answers, although that could change,and merging the
options would prevent it.

I would rather that we got around to implementing option groups. I.e. 
rather than individual options having a boolean "required" flag, the
module enumerates the valid permutations. The GUI would then provide a
set of radio buttons, and the required/optional/unused status of each
option would change accordingly.

This would also solve the problem where a bunch of options which would
normally be "required" are all optional because of the presence of
special cases (e.g. a "list" flag) which override the normal
requirements.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list