Thu, Sep 7 2006
21:19:31
|
|
Request created by guest
|
|
Subject: Unable to rename map if similar exists in PERMANENT
Platform: GNU/Linux/x86
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.2.cvs_src_snapshot_2006_08_31
I'm unable to rename raster map if map with same name exists in other
mapset. Any manipulations with maps should happen in local mapset IF not
specified othervise.
PS. It would be nice to add some hint to manual how to rename maps with
comma in name i.e. "Lake_25,5".
Example:
GRASS 6.2.0cvs (archimed):~ > g.gisenv
GISDBASE=/home/maris/gis_dati
LOCATION_NAME=archimed
MAPSET=somijai
DEBUG=0
MONITOR=x0
GRASS_GUI=tcltk
GRASS 6.2.0cvs (archimed):~ > g.rename rast=MASKA,MASK
ERROR: <MASK> already exists in mapset <PERMANENT>
GRASS 6.2.0cvs (archimed):~ > |
|
Fri, Sep 8 2006
05:48:33
|
|
Mail sent by glynn@gclements.plus.com
|
|
Return-Path |
<glynn@gclements.plus.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn@gclements.plus.com>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<17664.59404.298963.19385@cerise.gclements.plus.com>
|
Date |
Fri, 8 Sep 2006 04:48:28 +0100
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass-dev@grass.itc.it
|
Subject |
Re: [GRASS-dev] [bug #5111] (grass) Unable to rename map if similar exists in PERMANENT
|
In-Reply-To |
<20060907191931.B57FC1005BE@lists.intevation.de>
|
References |
<20060907191931.B57FC1005BE@lists.intevation.de>
|
X-Mailer |
VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
|
X-Spam-Level |
|
Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=5111
> Subject: Unable to rename map if similar exists in PERMANENT
>
> Platform: GNU/Linux/x86
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: grass-6.2.cvs_src_snapshot_2006_08_31
>
> I'm unable to rename raster map if map with same name exists in other
> mapset. Any manipulations with maps should happen in local mapset IF not
> specified othervise.
Having a warning for a "shadow" is a good idea; an error isn't.
> PS. It would be nice to add some hint to manual how to rename maps with
> comma in name i.e. "Lake_25,5".
You can't; at least not with g.rename. You will have to manually
rename the corresponding files/directories with "mv".
G_legal_filename() should be changed to prohibit commas in map names.
Probably some other characters (e.g. '@') as well.
Currently, it allows any byte between 33 and 126 inclusive except for
slash, double-quote and single-quote.
Some of those will conflict with GRASS syntax (e.g. comma, at,
equals), while others aren't legal in Windows filenames (e.g.
backslash, query, asterisk).
--
Glynn Clements <glynn@gclements.plus.com>
|
|
Sun, Sep 10 2006
23:51:46
|
|
Mail sent by msieczka
|
|
maris wrote (Thu, Sep 7 2006 21:19:31):
> I'm unable to rename raster map if map with same name exists in other
> mapset. Any manipulations with maps should happen in local mapset IF not
> specified othervise.
> Example:
> GRASS 6.2.0cvs (archimed):~ > g.gisenv
> GISDBASE=/home/maris/gis_dati
> LOCATION_NAME=archimed
> MAPSET=somijai
> DEBUG=0
> MONITOR=x0
> GRASS_GUI=tcltk
> GRASS 6.2.0cvs (archimed):~ > g.rename rast=MASKA,MASK
> ERROR: <MASK> already exists in mapset <PERMANENT>
I confirm. The funny thing about this bug is that if you instead try:
g.rename rast=MASKA,MASK@archimed
it will work. Why is explicit mapset declaration required - I don't know.
Maciek
|
|
Wed, May 9 2007
19:31:03
|
|
Mail sent by mneteler
|
|
AFAIK this was fixed in 6.3-CVS.
Markus |
|