[GRASSLIST:8226] Re: key column for categories

Trevor Wiens twiens at interbaun.com
Fri Sep 9 11:43:40 EDT 2005


On Thu, 8 Sep 2005 10:55:03 +0200
Olivier Faber <olivier.faber at tudor.lu> wrote:

> dear list
> 
> I imported a vector shapefile in Grass 6.0. The file contains some 70 
> different categories that are not explicitely written in a 'cat' column. 
> while importing, grass put me an extra column 'cat' in the .dbf file which is 
> used as category (numbers from 1-...). I need to represent the different 
> categories in different colors with a legend, but grass uses this cat column 
> as key column. how do I change this to get my own categories represented in 
> different colors?(do my categories have to be numbers or can they be text?) A 
> small hind on how to show the legend would be helpful too.
> 
> Thanx for any info
> 
> Olivier
> 

As far as I know you can't get a legend to display for vector layers in GRASS. You could however run QGIS from within GRASS to use the GRASS plugin and then display your layer there using whatever attributes you wanted.

T
-- 
Trevor Wiens
twiens at interbaun.com

The greatest obstacle to discovery is not ignorance - it is the illusion of knowledge.
(Daniel J. Boorstin)




More information about the grass-user mailing list