MapServer SLD World
MapServer Version: 4.9 5.2 5.6.1 6.0.0
MapServer SLD Capabilities[x]

This application shows the capabilities and differences of MapServer Version 4.9, 5.2, 5.6.1 and 6.0.0 to style wms layers. The used output format is the GD driver for Version 4.9 (or image format other than png) and the AGG driver for the other Versions.

button loadSLD
calls the wms with parameter SLD and loads the sld file into the textarea.

button execSLD
calls the wms with parameter SLD_BODY. That may propably not work with IE.

button Legend
shows a simple legend.

button Description
shows this.

button Params
lets one start the application with new parameters.

To get some feeling of the power of sld, change the sld in the text area and execute it.

show themes in new window

The first 4 entries of the dropdown list use the styles described in the mapfile to render the map. It shows the use of CLASSGROUP and the capability of MapServer to describe different styles for one layer. The parameter STYLES in WMS requests can be used to get the named style.


In the WMS request GetLegendGraphic is to use the parameter STYLE instead.

MapServer SLD - MapServer CLASSGROUP -