[GRASS-dev] How to get data from a location where the user does not own any mapset?

Moritz Lennert mlennert at club.worldonline.be
Tue Sep 29 13:56:23 PDT 2015


On 29/09/15 21:59, Radim Blazek wrote:
> On Sun, Sep 27, 2015 at 9:14 PM, Glynn Clements
> <glynn at gclements.plus.com> wrote:
>>
>> Radim Blazek wrote:
>>
>>> Perfect, that is what I need. Why GRASS_SKIP_MAPSET_OWNER_CHECK should
>>> not be set by programs for read only access?
>>
>> If you only need to read a mapset, you shouldn't need to make it the
>> current mapset, nor should you try.
>
> The mapset I need to read from does not have to be current, but one
> mapset must be current and G_gisinit() checks if user is owner of
> current mapset. If the user is not owner of any mapset in the
> location, what can be set as current mapset?


Can't you just create a temporary mapset and erase it at the end ?

Moritz


More information about the grass-dev mailing list