[OpenLayers-Users] SLD different rules in a layer according to dynamic information

Diego Roberto diegorrborges at yahoo.com.br
Mon Nov 18 06:05:48 PST 2013


Hello ,
I am working on a project that shows statistical information about the state . Among these statistics need to show for instance the cities that stand out in an industry with percentage ranges . Example :
Agricultural sector in the state of Goiás in Brazil will have to show painted the municipalities of colors according to the percentage .
	* 100-81 % - Dark Blue

	* 80-51 % - Light Blue

	* 50-21 % - Gray

	* 20-0 % - white

Below is a picture showing more or less this: http://www.4shared.com/download/Slpq6Wbr/mapa.jpg

I have a shapefile from around the state with geographic information , as well as the same information in the database PostgreSQL + PostGIS .
I'm working with files with Geoserver SLD to paint municipalities .

I have two questions to work with this information :
1 ) What is the best way to work in a matter of processing. A shapefile is imported into GeoServer or pointing a table from the database in GeoServer ?
2 ) This way of working to create the style SLD in GeoServer and assign eg dark blue if the municipality is within the range 100-81 % believe the correct way to work ?

I thank you for your attention.
Diego.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131118/5ab494b1/attachment-0001.html>


More information about the Users mailing list