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

Markus Neteler neteler at osgeo.org
Thu Mar 20 10:23:26 EDT 2008


Martin,

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)?

Markus

On Thu, Mar 20, 2008 at 2:49 PM, Martin Landa <landa.martin at gmail.com> wrote:
> Hi all,
>
>  is there a way how to determine if a mapset is accessible without need
>  to switch 'g.mapset name' -> 'ERROR: You don't have permission to use
>  this mapset'. If not maybe new flag for g.mapsets would make sense?
>
>  -a 'List all accessible mapsets'
>
>  Martin
>
>  --
>  Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
>  _______________________________________________
>  grass-dev mailing list
>  grass-dev at lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/grass-dev
>



-- 
Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/


More information about the grass-dev mailing list