[GRASS-user] Exporting labels of a raster

Rainer M Krug r.m.krug at gmail.com
Fri Jul 1 09:23:02 EDT 2011


On Fri, Jul 1, 2011 at 3:18 PM, Luisa Peña <luisapena1979 at gmail.com> wrote:

> Hi Rainer  (back to ML)
>
> I have a classification procedure that produces land-use/cover maps with
> numerical classes between 1 and 5.
>
>>
>> Ok - that seems to be fine.
>>
>>
>>> Then I want to produce another map, but with text labels for each class.
>>
>>
>> You have done this with r.reclass
>>
> That's right. When I select a pixel I get something like this | coordinateX
> | CoordinateY ||1 | URban|
>
>
>>
>>
>>> And be able to export this raster with its labels.
>>
>> As a map?
>> Because in grass, you can not create a raster with non-numeric values,
>> unless they are labels, and the cell values are numeric. If you want to have
>> the labels in a legend, that is a different issue. I do not know if any
>> export format supports the export of labels as well.
>>
>>
> Uhm. If this is not possible, how can I export a raster map with labels in
> a legend?
>

Check the ps.map command in grass to create maps - you will be able to
create a map with legend using the labels and export it as postsript file.

Rianer

>
> Thank you so much
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110701/acfe6fab/attachment.html


More information about the grass-user mailing list