[GRASS-dev] r.support: category copy from other raster map added

Markus Neteler neteler at itc.it
Wed Mar 21 04:19:39 EDT 2007


Hi,

sometimes, when elaborating with categorical raster data,
category labels are not transfers to the new map. In case that
the cats are the same or a subset, you can now use r.support
to copy over cats/labels from the original map (the same style
as r.colors does):

# only category numbers, no labels:
r.cats newzipcodes

# label transfer:
r.support newzipcodes rast=zipcodes

# everything reconstructed:
r.cats newzipcodes

Cheers
Markus

------------------
ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
ITC -> since 1 March 2007 Fondazione Bruno Kessler
------------------




More information about the grass-dev mailing list