#2506: g.rename fails to rename map when there is already map of the same name in
PERMENENT
-------------------------+--------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: g.rename | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
In a mapset (different than PERMANENT) I run:
{{{
g.rename raster=mymap,elevation
WARNING: <elevation> already exists in mapset <PERMANENT>
}}}
It doesn't rename it. When I use overwrite, it works. Still it seems it's
a bug.
Also when I add there my current mapset, it fails, and I thought we
decided that current mapset should be supported when specifying output map
names.
{{{
g.rename raster=mymap,elevation@mycurrentmapset
WARNING: Illegal filename <elevation@mycurrentmapset>. Character <@> not
allowed.
WARNING: <elevation@mycurrentmapset> is an illegal file name
}}}
#2506: g.rename fails to rename map when there is already map of the same name in
PERMENENT
-------------------------+--------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: g.rename | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by martinl):
The map is not renamed because G70 still uses abbreviated element names
(ie. `rast`). `g.rename` silently fails because of
source:grass/branches/releasebranch_7_0/lib/manage/list.c#L47
#2506: g.rename fails to rename map when there is already map of the same name in
PERMENENT
-------------------------+--------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: g.rename | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
#2506: g.rename fails to rename map when there is already map of the same name in
PERMENENT
-------------------------+--------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: g.rename | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by wenzeslaus):
Replying to [comment:2 martinl]:
> In GRASS 71 (trunk) it works.
Not for me with older trunk. I have r62726 (before any renaming) and I'm
getting:
{{{
> r.mapcalc "aaa = 1"
100%
> g.list rast mapset=.
aaa
> g.rename rast=aaa,elevation
WARNING: <elevation> already exists in mapset <PERMANENT>
> g.list rast mapset=.
aaa
> g.rename rast=aaa,elevation --o
Rename raster <aaa> to <elevation>
> g.list rast mapset=.
elevation
}}}