MapServer WFS Demo and OpenLayers 2.10 SLD support for vector styles
MapServer Version: 4.9 5.2 5.6.1 6.0.0
SLD:
MapServer WFS and OpenLayers SLD[x]

This application shows the differences of MapServer Version 4.9, 5.2, 5.6.1 and 6.0.0 handling WFS post requests. And the capabilities of OpenLayers SLD support to render vectors.

WFS GetCapabilities
WFS DescribeFeature
WFS GetFeature (MaxFeatures=2)


button loadSLD
requests the SLD, renders the vectors and loads the sld file into the textarea.

button execSLD
renders the vectors using the text from the textArea.

button Description
shows this.

button Params
lets one start the application with new parameters.

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

SLD Source Files
There are two sets of sld files available. The first set is from demo.mapserver.org and a second set is a local copy of them with some changes and some own example files. Comments on MapServer
The features are requested by WFS Post.

Version 4.9 : doesn't work. Throws error : Invalid or Unsupported FILTER in GetFeature.

Version 5.6.1 : propertyNames:["msGeometry"] must be included in the request. Otherwise the response contains only the attributes and no geometry.

Version 6.0.0 : with DATA 'shapefile' in the mapfile MapServer found no results,
with CONNECTIONTYE ogr and CONNECTION 'shapefile' MapServer works as expected.

Comments on Openlayers

OpenLayers supports many SLD features, but not all.
i.e: polygon hatches or label rotation.

labels : use of patch from Ticket #2551 - apply text symbolizer if present

MapServer WFS Server - OpenLayers SLD Example - gis.ibbeck.de