Hello,

> I'd like to fill the polygons with multiple colors such that adjacent
> polygons don't have the same color. How can I do this ?

Easiest answer - if number of polygons is small make them all
different colors :)

General answer...
Theoretically you only need four colors to achieve what you want with any map...

http://en.wikipedia.org/wiki/Four_color_theorem

But it's actually better to have five colors because there is a much
faster algorithm for this...

http://en.wikipedia.org/wiki/Five_color_theorem#Linear_time_five-coloring_algorithm

I'd be interested to hear if anyone on the list has already got an
implementation of this. Perhaps some clever bit of GeoServer ?

Michael

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

_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to