[GRASS-dev] [GRASS GIS] #731: Warming message after removing layer confusing

#731: Warming message after removing layer confusing
-------------------------------------+--------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Keywords: remove, delete, message | Platform: Linux
      Cpu: x86-64 |
-------------------------------------+--------------------------------------
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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/731&gt;
GRASS GIS <http://grass.osgeo.org>

#731: Warning message after removing layer confusing
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.0
Component: Default | Version: svn-develbranch6
Resolution: fixed | Keywords: g.remove, delete, message
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by hamish):

  * keywords: remove, delete, message => g.remove, delete, message
  * status: new => closed
  * resolution: => fixed

Comment:

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/731#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>