Opened 15 years ago

Closed 12 years ago

#731 closed defect (fixed)

Warning message after removing layer confusing

Reported by: pvanbosgeo Owned by: grass-dev@…
Priority: normal Milestone: 6.4.0
Component: Default Version: svn-develbranch6
Keywords: g.remove, delete, message Cc:
CPU: x86-64 Platform: Linux

Description

I am not sure this is a bug or I am just not following the logic of the message, but:

suppose I have both in mapset 'climate' and 'climpred' a layer prec_8. When deleting the layer 'prec_8' from mapset 'climpred' I get the following message:

quote> Removing raster <prec_an> cell/prec_8' was found in more mapsets (also found in <climpred>) Using <prec_an@climate> <unquoute

For me this is confusing as it seems to tell that the layer prec_8 is deleted from the wrong mapset (which is not the case). If the message is correct, would it mean that after deleting the layer subsequent actions using layer prec_8 will take that layer from the mapset climate?? If so I would suggest to rewrite that message to something like:

quote> Another laye with the name prec_8 exists in mapset <climate> Removed prec_8@climpred <quote

Such a message would be more in line with the (rather straightforward and clear) message one gets when using a layer in r.mapcalc while a layer with the same name exists in another mapset.

Paulo

Change History (1)

comment:1 by hamish, 12 years ago

Keywords: g.remove added; remove removed
Resolution: fixed
Status: newclosed
Summary: Warming message after removing layer confusingWarning message after removing layer confusing

current behaviour in 6.4.3svn:

GRASS> g.copy geology,geology
Copy raster <geology@PERMANENT> to current mapset as <geology>

GRASS> g.remove geology
Removing raster <geology>
WARNING: 'cell/geology' was found in more mapsets (also found in
         <PERMANENT>)
WARNING: Using <geology@user1>

seems like it got fixed.

note only maps from the current mapset can be written to (or deleted).

Hamish

Note: See TracTickets for help on using tickets.