Hi Nikos,

On Thu, Jan 17, 2013 at 1:07 PM, Martin Landa <[email protected]> wrote:
> 2013/1/17 Nikos Alexandris <[email protected]>:
>> 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
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to