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 GetFeature (MaxFeatures=2)
requests the SLD, renders the vectors and loads the sld file into the textarea.
renders the vectors using the text from the textArea.
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
- 1. SLDsrcSet : demo.mapserver.org
- 2. SLDsrcSet : gis.ibbeck.de
The features are requested by WFS Post.
: doesn't work. Throws error : Invalid or Unsupported FILTER in GetFeature.
: propertyNames:["msGeometry"] must be included in the request. Otherwise the response contains only the attributes and no geometry.
: 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.
: use of patch from Ticket #2551
- apply text symbolizer if present
MapServer WFS Server - OpenLayers SLD Example - gis.ibbeck.de