From: Michael B. <mic...@gm...> - 2010-05-20 23:42:50
|
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 |