[GRASS-dev] [GRASS GIS] #2546: unable to remove raster map after using it as a mask

#2546: unable to remove raster map after using it as a mask
-----------------------------------+----------------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: mask, remove, reclass | Platform: Linux
      Cpu: Unspecified |
-----------------------------------+----------------------------------------
Steps to reproduce this bug:

{{{
g.region rast=ofoto.alpha
r.mask raster=ofoto.alpha mask=0 -i
r.mask -r
}}}

Even the mask has been removed, it's not possible to remove raster map
`ofoto.alpha`:

{{{
g.remove rast name=ofoto.alpha -f
WARNING: Raster map <ofoto.alpha@OstrovaciceHrbitov> is a base map. Remove
reclassed map <MASK@OstrovaciceHrbitov> first.
}}}

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

#2546: unable to remove raster map after using it as a mask
-----------------------------------+----------------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: mask, remove, reclass | Platform: Linux
      Cpu: Unspecified |
-----------------------------------+----------------------------------------

Comment(by pvanbosgeo):

I can confirm this. As mentioned in an email a few days ago, even if the
MASK is removed already, in the
GRASSdb/location/mapset/cell_misc/rastername there is the file
'reclassed_to' which contains the pointer to the MASK. Removing this file
solves the problem.

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

#2546: unable to remove raster map after using it as a mask
-----------------------------------+----------------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: mask, remove, reclass | Platform: Linux
      Cpu: Unspecified |
-----------------------------------+----------------------------------------

Comment(by neteler):

Changes which potentially cause this:

  * g.rename: r60976 | backport: r64011
  * manage/lister: r62085 | backport: r64013

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