[GRASS-user] Legend for vector map

Michael Barton michael.barton at asu.edu
Wed Jan 13 12:31:59 EST 2010

On Jan 13, 2010, at 10:00 AM, grass-user-request at lists.osgeo.org wrote:

> Date: Wed, 13 Jan 2010 13:43:49 +0000
> From: Alessandro Bertan <alessandro.bertan at googlemail.com>
> Subject: [GRASS-user] Legend for vector map
> To: grass-user at lists.osgeo.org
> Message-ID:
> 	<b427d7d1001130543s41bc1882xcb8b2b0f174c2f9e at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> Dear grass users,
> is there a way to display on the graphics monitor a legend for a
> vector map? Something similar to d.legend? The vector map for which I
> need a legend is a series of points which have some temperature values
> associated with them. I have used v.colors to set color rules for the
> temperature values, but I cannot get a legend.
> thanks!
> Alessandro

When in GRASS, think raster. 

Make a raster copy of your vector map (v.to.rast) with the same colors and making sure that the labels match in information in your vector table you want in the legend. Then use d.legend to create a legend from the raster map (but don't display the raster map). 


More information about the grass-user mailing list