[GRASS-user] Exporting labels of a raster
Moritz Lennert
mlennert at club.worldonline.be
Fri Jul 1 13:38:18 EDT 2011
On 01/07/11 15:18, Luisa Peña wrote:
> Uhm. If this is not possible, how can I export a raster map with labels
> in a legend?
>
In my experience, the classical way would be to export your raster map
into the desired format and then export the labels as a separate legend
(text) file with r.category. E.g.:
r.out.gdal landclass96 at PERMANENT type=Int32 out=myraster.tif
r.category landclass96 at PERMANENT fs=";" > myrasterlegend.csv
and possibly:
r.colors.out landclass96 at PERMANENT rules=myrastercolors.txt
Moritz
More information about the grass-user
mailing list