[GRASSLIST:6502] Re: plot points in different color

Hamish hamish_nospam at yahoo.com
Sat Apr 16 22:42:42 EDT 2005


> > > > I have a point data associated with PostgreSQL table. I would
> > > > like to fill the points with RGB color based on their attribute
> > > > (typical desktop GIS task).
> > 
> > I think currently you have to use a shell script:
> > 
> > d.vect cats= fcolor=
> > 
> > for each category.
> > 
> > you could use db.select as a source to feed these values in
> > automatically.
> 
>    Presumably, to do this based on attribute, one would need to
> classify the points  first in classes?


you could do this right at the display step using d.vect's cats= and
where= options to restrict to a SQL query. e.g.,

d.vect map where="individual='juvenile' and area='beach'"




Hamish




More information about the grass-user mailing list