WMS Layer Thematic Mapping

3/25/2013 3:55:35 AM
Total Posts 6

WMS Layer Thematic Mapping

I'm using a WMS layer of western pacific countries. I want to shade a specific country in my map. Is it possible to apply thematic mapping in a WMS Layer? Can I set the Fill Color like when using a shapefile layer?

3/25/2013 4:32:48 AM
MVP
Total Posts 323

Re: WMS Layer Thematic Mapping

There is the style parameter in the WmsLayer.AddLayer method.
If the WMS server supports thematic mapping via styles, it is possible.
The WMS specification does not support thematic mapping by itself.

3/25/2013 5:01:39 AM
Total Posts 6

Re: WMS Layer Thematic Mapping

Would you know if GeoServer supports thematic mapping? Or what WMS server supports thematic mapping? What values can I use for the style parameter?

3/25/2013 5:18:17 AM
MVP
Total Posts 323

Re: WMS Layer Thematic Mapping

The style values depend on the creator of the WMS service. Check the documentation for the WMS service you are using or contact their support staff.

3/25/2013 5:22:21 AM
Total Posts 3

Re: WMS Layer Thematic Mapping

Dear Support,

 

Are you referring to CSS when you mentioned style parameter?

 

Thanks,

Jo

3/25/2013 7:44:53 AM
MVP
Total Posts 323

Re: WMS Layer Thematic Mapping

The style parameter specifes a named style of rendering which is (optionally)implemented by a WMS service. The following sample instructs a WMS service to produce a map that contains two layers, countries and rivers, where the countries layer is rendered using green color and the rivers layer using blue color:

wmsLayer.AddLayer("countries", "green");

wmsLayer.AddLayer("rivers", "blue");

3/25/2013 7:38:42 PM
Total Posts 6

Re: WMS Layer Thematic Mapping

What if I want to set the color of the country depending on its value in the database? I'm actually trying to make something like your Demographic sample but using geoserver instead.
3/26/2013 1:04:56 AM
MVP
Total Posts 323

Re: WMS Layer Thematic Mapping

This fully depends on GeoServer, we suggest to look at its documentation.