[GRASS-dev] g.mapsets, print only accessible mapsets

Martin Landa landa.martin at gmail.com
Thu Mar 20 10:57:55 EDT 2008


Markus,

2008/3/20, Markus Neteler <neteler at osgeo.org>:
>  in libgis I see
>  /****************************************************************
>  * G__mapset_permissions (mapset)
>  *
>  * returns: 1 mapset exists, and user has permission
>  *          0 mapset exists, BUT user denied permission
>  *         -1 mapset does not exist
>  ****************************************************************/
>
>  could that help (in modified form)?

I need list of accessible mapsets for wxGUI welcome screen (currently
'g.mapsets -l' is used which prints all available mapsets). Modifying
g.mapsets module to print only accessible mapsets would be pretty easy
(aka new flag), BTW how TCL/TK checks if mapsets is accessible (I see
that those mapsets are hidden in welcome screen)?

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-dev mailing list