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 tell that software to 
generate a different color for that value. If you have ArcMap available, there 
is an ArcScript http://arcscripts.esri.com/details.asp?dbid=14822 that will do 
a four color map  for you. Then you can export the layer to SLD by following 
http://geoserver.org/display/GEOSDOC/ArcGIS+to+SLD+tool.

 

Regards, Paul
 


Date: Fri, 17 Sep 2010 19:22:34 +0800
From: zhuhua...@163.com
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] how to write sld for adjacent polygons with 
different color?

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.

                                          
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to