Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying to delete a map that I used as a mask before, but I cannot delete it using g.remove. It displays this:

g.remove rast=raster_Mnorzagaray@PERMANENT
[raster_Mnorzagaray@PERMANENT@PERMANENT] is a base map. Remove reclassed map first: MASK@PERMANENT

share|improve this question
    
What's happening if you only write g.remove rast=raster_Mnorzagaray ? –  simo Mar 8 '11 at 16:50
    
when i write that, g.remove rast=raster_Mnorzagaray [raster_Mnorzagaray@PERMANENT] is a base map. Remove reclassed map first: MASK@PERMANENT is displayed. I used raster_Mnorzagaray previously as a mask and Im trying to remove it because i will use the same name for another map –  teamAngat Mar 8 '11 at 17:13
    
you should probably remove the mask before, with the command r.mask -r then g.remove rast=raster_Mnorzagaray –  simo Mar 8 '11 at 17:17
1  
I did that but it still produced the same error. raster_Mnorzagaray is not anymore in the list of raster maps but I cannot use the same name to create another map with the same name. –  teamAngat Mar 8 '11 at 17:27
    
Same here. Maybe we need to extend/alter the WARNING message. –  Nikos Alexandris Mar 1 '13 at 12:42

2 Answers 2

up vote 2 down vote accepted

there is another map that uses that one as base map, it maybe a RGB composition or something like it. If you don't find what it is, just delete the map from the grassdata directory, you will find it in cell, cell_misc and cellhd folders in grassdata\location\mapset\.

share|improve this answer
    
How safe is that though? –  Nikos Alexandris Mar 1 '13 at 12:43
    
It won't crash the program, but certainly the composition will not work anymore. –  Pablo Mar 1 '13 at 19:37
    
Yes, sort of the latter I was referring to. –  Nikos Alexandris Mar 2 '13 at 15:58

The command g.mremove with flag -b can be used to remove base maps.

share|improve this answer
    
Thanks! It also worked same as the previous answer –  teamAngat Mar 10 '11 at 16:33
1  
Using native grass modules is safer, in any case. Also, one can force the removal of any map by issuing the force flag, i.e.: g.remove rast=raster_Mnorzagaray -f. –  Nikos Alexandris Dec 4 '13 at 23:21
    
I agree with @Nikos, the right way is to use the force flag –  Annalisa Minelli 2 days ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.