[GRASS-dev] all categories copied over to new map

Paulo van Breugel p.vanbreugel at gmail.com
Tue Sep 15 11:08:21 PDT 2015


Suppose I have a categorical raster map and I want to 'cut out' a subset 
(with g.region to set a small region and r.mapcalc to create the new 
map). This map has a smaller number of categories, as is shown using 
e.g., r.category. However, when plotting the legend, all the categories 
of the original map are included in the legend. Checking the 'cats' file 
shows that it indeed lists all original categories and labels, including 
for those categories not present in the new map. This doesn't make sense 
to me, but perhaps I am missing something here?

Rgds,

Paulo




More information about the grass-dev mailing list