[GRASS-dev] [bug #5243] (grass) d.vect: better random color generation

Martin Landa landa.martin at gmail.com
Sat Nov 18 05:16:57 EST 2006


Hi,

I am thinking about relationship between d.vect and d.vect.thematic.
BTW d.vect.themetic should be rewritten to C, is anybody working on
it? (sorry, I am trying to read every message in grass-dev, bad
memory;-). I am just wondering about d.vect X d.vect.thematic
modules...

Thanks for clarification.

Best regards, Martin

2006/11/18, Martin Landa <landa.martin at gmail.com>:
> Hi,
>
> 2006/11/18, Hamish <hamish_nospam at yahoo.com>:
> > Martin Landa wrote:
> > > I have tried to implement random coloring using
> > > G_make_random_colours(), see the attached patch for d.vect.
> >
> > do multiple vector features with the same cat value have the same color?
>
> yes, they should have the same color, e.g. (spearfish60)
>
> d.erase;d.vect landuse dis=cat,shape -c
>
> > general question: how to "lock-in" nice random colors once you find
> > them? e.g. populate GRASSRGB attribute column to survive d.redraw and
> > use with ps.map.
>
> One of the solutions: new flag -u to update color values to GRASSRGB
> column in attribute table (like in d.vect.thematic). Do you have
> better idea?
>
> >
> > > Then I will also try to implement random colors based on the given
> > > attribute column.
> >
> > how about "true" color scaling min->max like d.vect.thematic does with
> > value-bands?
> >
> >
> > cheers,
> > Hamish
> >
>
> Martin
>
> --
> Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *
>


-- 
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *




More information about the grass-dev mailing list