[GRASS5] r.mapcalc category labels improvement

Markus Neteler neteler at itc.it
Mon Dec 3 04:56:27 EST 2001


Dear all,

Huidae Cho was so kind to implement a small r.mapcalc
improvement:

In simple formula such as copying one map to another
the category label file is transfered now to the new
map.

Two examples:

GRASS:~ > r.mapcalc testmap=geology
EXECUTING testmap = ...  100%
CREATING SUPPORT FILES FOR testmap
range: 1 9
Copying category labels from <geology at PERMANENT> to <testmap at user1>

Then to test the case when no cats are present:
GRASS:~ > rm -f $LOCATION/cats/testmap

GRASS:~ > r.mapcalc newmap=testmap
EXECUTING newmap = ...  100%
CREATING SUPPORT FILES FOR newmap
range: 1 9
NOTE: cannot copy category labels for <newmap at user1>
      as not present in <testmap at PERMANENT>

Also in simple "if" statements the cats copy is supported.
It is uploaded to CVS.

Thanks to Huidae,

 Markus



More information about the grass-dev mailing list