[GRASS-user] d.vect: Setting Colors by Attribute Column

Hamish hamish_b at yahoo.com
Wed Dec 30 17:23:38 EST 2009


Rich wrote:
>   Don't see the answer in the
> man page or wiki so a pointer to the
> information is appreciated.
> 
>   I have a table of soil mapping units (polygons) and
> one of the columns is
> 'mukey' (map unit key). If I want to display each mukey in
> a different
> color, do I need to pre-define these within the database
> table or is there a
> d.vect option to do it and I'm not seeing which one that
> is?


d.vect -c

  -c   Random colors according to category number (or layer number if 'layer=-1' is given)


or if mukey isn't the cat column:

v.colors column=mukey color=random
d.vect -a 



Hamish



      


More information about the grass-user mailing list