[GRASS-dev] remove layer fails because of MASK reclass (but MASK has been removed already)

Paulo van Breugel p.vanbreugel at gmail.com
Sat Jan 10 10:16:20 PST 2015


Hi, I can't remove a raster which previously was used to create a MASK
(which was subsequently removed) without forcing it using the b-flag in
g.remove. Steps:

1) create a MASK based on layer A.
2) remove the mask with r.mask -r.
3) remove layer A with g.remove: this gives the error:

WARNING: Raster map <A> is a base map. Remove reclassed map <MASK at env first.

Going through the database folders I noticed that in the
GRASSdb/location/mapset/cell_misc/A folder there is the file 'reclassed_to'
which contains the pointer to the MASK. Removing this file solves the
problem.

So I guess when removing the mask this file should be removed too.

I am running GRASS 7 trunk on Ubuntu 14.04
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150110/9dea49a1/attachment.html>


More information about the grass-dev mailing list