[GRASS5] Re: [PATCH] introduce where clause in d.vect.thematic (and v.univar.sh)

Hamish hamish_nospam at yahoo.com
Wed Sep 7 21:22:52 EDT 2005


> Ok, I've committed the changes to introduce a where option. As soon
> as (if) Hamish manages to find some time to allow rgb colors for
> rectangles in ps.map, I will also activate the dormant code
> concerning a ps legend.


I had been thinking about that yesterday WRT adding RGB color selection
for symbols via the ps.map point and vpoints instructions.

There was the question about changing the internal paint command file. I
think this is only used in ps.map so it won't be a problem, but if
anyone knows otherwise please speak up. Second warning, etc. etc.

The other thing I thought about was how best to add in GRASSRGB column
support for ps.map vector features. Conceivably someone might want to
use that column for both fill color and the line color. Also for
the busier commands adding more options isn't something I want to do.

Possible solution: extend the color name parsing code to accept an
attribute column name which would hold the RRR:GGG:BBB triplets. That it
is a column name would have to be denoted somehow, perhaps by putting
the name in <BRACKETS> and caps.

e.g.
color red
color 255:0:0
color <GRASSRGB>

would all work. Also this means you could do

color <FG_COLOR>
fcolor <FILL_COLOR>

or any other legal column name.


Devil is in the details of course, I don't know how easy it would be to
implement. But if it works and is liked, it might be a nice thing to
have in the display modules too. Consider also that beyond adding RGB
support to plotting commands and symbols in ps.map, and maybe GRASSRGB
column support to vareas, I can't spend very much time on this & someone
else would have to do the work.




Hamish




More information about the grass-dev mailing list