[GRASS-dev] g.mapsets: adding switch for shell style listing
Pietro
peter.zamb at gmail.com
Thu Jan 17 04:43:11 PST 2013
Hi Nikos,
On Thu, Jan 17, 2013 at 1:07 PM, Martin Landa <landa.martin at gmail.com> wrote:
> 2013/1/17 Nikos Alexandris <nik at nikosalexandris.net>:
>> Is there any reason _not_ to have shell style listing (line-by-line) of
>> Mapsets?
>
> in G7 try
>
> g.mapsets -l --q sep=newline
or if you are using python in grass7, with:
>>> from pygrass.gis import Location
>>> loc = Location()
>>> loc.mapsets()
['user1', 'PERMANENT']
Why the parameter mapset is it set as a required (that i not true... )?
@main.c line:69
opt.mapset = G_define_option();
opt.mapset->key = "mapset";
opt.mapset->type = TYPE_STRING;
opt.mapset->required = YES;
opt.mapset->multiple = YES;
opt.mapset->description = _("Name(s) of existing mapset(s)");
opt.mapset->guisection = _("Search path");
Pietro
More information about the grass-dev
mailing list