Details Ticket 2594


Comment | Reply | Take | Open


Serial Number 2594
Subject MASK and Mapset conflicts
Area grass5.7
Queue grass
Requestors otto.dassau@gmx.de
Owner none
Status resolved
Last User Contact Thu Aug 26 21:52:56 2004 (4 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Thu Sep 2 05:29:50 2004 (4 yr ago)
Created Thu Aug 26 17:11:27 2004 (4 yr ago)

Transaction History Ticket 2594


Thu, Aug 26 2004 17:11:27    Request created by guest  
Subject: MASK and Mapset conflicts

Platform: GNU/Linux/i386
grass obtained from: CVS
grass binary for platform: Compiled from Sources

Dear list,  
 
When I start GRASS and select several other mapsets with g.mapsets and one of
them already includes a MASK file, then it isn't possible to create another 
MASK file in the current mapset anymore, although the MASK is not in that 
mapset. 
 
ERROR: <MASK> already exists in mapset <norden_p8> 
 
When I deselect the other mapsets, then I am able to create a MASK again.  
Can this be solved somehow? 
 
thanks in advance 
  Otto 
Thu, Aug 26 2004 21:52:56    Mail sent by glynn.clements@virgin.net  
Return-Path <glynn.clements@virgin.net>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn.clements@virgin.net>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <16686.14668.747218.857905@cerise.nosuchdomain.co.uk>
Date Thu, 26 Aug 2004 20:26:04 +0100
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #2594] (grass) MASK and Mapset conflicts
In-Reply-To <20040826151127.4CD34100166@lists.intevation.de>
References <20040826151127.4CD34100166@lists.intevation.de>
X-Mailer VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=2594

> Subject: MASK and Mapset conflicts

> When I start GRASS and select several other mapsets with g.mapsets and one
of 
> them already includes a MASK file, then it isn't possible to create another
> MASK file in the current mapset anymore, although the MASK is not in that 
> mapset. 
>  
> ERROR: <MASK> already exists in mapset <norden_p8> 
>  
> When I deselect the other mapsets, then I am able to create a MASK again. 
>  
> Can this be solved somehow? 

That particular behaviour is part of g.copy and g.rename; you can use
the -o flag to override it.

These programs don't distinguish between the case where the
destination exists in the current mapset and the case where it exists
in some other mapset. You have to use -o if the destination name is in
use in any active mapset.

I believe that this behaviour is intentional, to prevent the user from
inadvertantly "shadowing" an existing map.

If you aren't using g.copy/g.rename directly, but are using some other
program which calls them, tell us which one; we may wish to add the -o
switch.

Note that the raster I/O code only looks for the MASK file in the
current mapset; a MASK file in other mapsets won't be used as a mask.

-- 
Glynn Clements <glynn.clements@virgin.net>


Thu, Sep 2 2004 05:29:50    Status changed to resolved by gclements  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request