[GRASSLIST:4931] overwriting a raster layer with g.rename

Thomas Dewez thomas.dewez at brunel.ac.uk
Mon Nov 11 06:50:51 EST 2002


Dear all,

I am puzzled by the behaviour of g.rename. The Note in the man pages say:

"However, g.rename will allow the user to overwrite other existing files in the current 
mapset by making the new file name that of an already existing file."

I used this property in the following sequence:

map1 produced by some function
map2 produced by some other function

r.patch input=map1,map2 output=map3;
g.rename rast=map3,map2;

Instead of working smoothly I get the answer:
<map2> already exists in mapset <blah>

Is there a particular command switch to overwrite the file?

Thanks for hints or ways around?

Thomas

Thomas Dewez
PhD Student
Dept Geography & Earth Sciences
Brunel University (West London)
Uxbridge UB8 3PH, Mddx
United Kingdom

Phone: +44-(0)1895-203215
Fax:     +44-(0)1895-203217

e-mail: thomas.dewez at brunel.ac.uk




More information about the grass-user mailing list