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.
-----Original Message----- From: Andrea Aime [mailto:[email protected]] Sent: Friday, May 21, 2010 9:51 AM To: Michael Bedward Cc: [email protected] Subject: Re: [Geotools-gt2-users] ColorMap on polygons Michael Bedward ha scritto: > On 21 May 2010 20:12, Andrea Aime wrote: >> A tool could be used to load the data, build a connectivity map, >> assign the colors, and generate a SLD using FID filters to assign >> the 5 colors to the different polygons. > > It would be cool to have something like that wouldn't it ? It sounds > like the sort of thing that would make a nice SoC project or similar > sometime. Yep, would be a nice tool. Could be useful for uDig too. There is one catch however. Not having a random color might induce people looking at the map to think there is some sort of qualitative/quantitative classification. I think for this case having a RandomColor filter function would be more appropriate. I guess it might just take no arguments, and/or maybe take a list of colors to choose from. 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 ------------------------------------------------------------------------------ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
