[Geoserver-users] how to write sld for adjacent polygons with different color?

2010-09-23 Thread ZZH
hi all, I want to write a sld file for a polygon layer. the requirement is that the adjacent polygons must have different color. how to write it? Thanks. -- Start uncovering the many advantages of virtual appliances and

Re: [Geoserver-users] how to write sld for adjacent polygons with different color?

2010-09-23 Thread David Winslow
SLD rules are processed on single features at a time, so they cannot express constraints on the colors of neighboring features. I can think of a couple of options: - Approximate the coloring by simply assigning random colors to each polygon. Actually you would probably want something a

Re: [Geoserver-users] how to write sld for adjacent polygons with different color?

2010-09-23 Thread Paul Joyce
Hi, I don't believe this is possible to specify directly in SLD. Instead you need to generate a very long SLD that specifies explicitly the color for each polygon. This is best generated with a desktop GIS tool like uDig or ArcMap or similar. You will probably use an attribute value to