Hi, The patch resolves the problem in parts.
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyIsLike wildCard="*" singleChar="." escape="!"> <ogc:PropertyName>indice</ogc:PropertyName> <ogc:Literal>.2</ogc:Literal> </ogc:PropertyIsLike> </ogc:Filter> The SLD will be created and the WFS GetFeature request, which use this filter, responses with the correct features. But the SLD will not style the features in the correct way. OpenLayers use the ElseFilter instead of the Rule with the above filter. There seems to be still a bug. I have to use '*.2' to get the right style for the features, what also works for the WFS. That's what I do to apply the SLD to the vectorlayer var formatSLD = new OpenLayers.Format.SLD(); var sld = formatSLD.read(theSLD_BODY); layerSelect["styleMap"]["styles"]["default"] = sld.namedLayers[featureType].userStyles[0]; Online example, where you can see this behaviour: http://gis.ibbeck.de/ginfo/apps/OLExamples/OL29/SLDShow/ApplySLDwfs.asp?Mapf ile=LettersSHP.map Thanks for the patch Arnd _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
