Duane Zamrok ha scritto:
> Assigning a color to each one would indicate qualitative/quantitative
> classification, but using random colors could result in two adjacent
> shapes receiving the same color. Perhaps if you instead started your
> coloring at a random shape in the set, and then progressed from
> there. Just throwing ideas in the air.

Ah, this would be problematic. In server side applications the same
filter function is used by multiple threads in parallel, so making
it stateful is tricky (one can use thread locals, but then they
also have to be cleaned up, failure to do that results in the
web application leaking permanent generation memory on undeploy).

If one really needs a guarantee that no two adjacent polygon get
the same color it's better to do that deterministically, and in
pre-processing.

Cheers
Andrea


-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to