[GRASS-user] displaying points based on attributes

Michael Barton michael.barton at asu.edu
Fri Oct 13 01:56:32 EDT 2006

I've learned that in GRASS, it helps to think raster. Try the following:

1. Make a raster version of your vector data (or even make a simple
schematic raster map that simply has one or more grid cells for each
category in your vector map)
2. Use r.colors with rules to color the rasterized points (or any other
feature) based on an attribute that you save with your raster to match the
colors you use in the color column for vectors
3. Display your colored vector map
4. Use d.legend to display a nice legend for the raster version of your
vector map
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

> From: Hamish <hamish_nospam at yahoo.com>
> Date: Thu, 12 Oct 2006 16:10:40 +1300
> To: Moritz Lennert <mlennert at club.worldonline.be>
> Cc: <grassuser at grass.itc.it>, <spluque at gmail.com>
> Subject: Re: [GRASS-user] displaying points based on attributes
> Moritz Lennert wrote:
>> The biggest problem I see with all this at this stage in GRASS, is
>> that with the exception of d.vect.thematic, you cannot easily get a
>> legend for the colors used...
> for the repeated vector map with different SQL query method, the vlegend
> command in ps.map works well.
> Hamish

More information about the grass-user mailing list