<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head><meta http-equiv="Content-Type" content="text/html;charset=us-ascii">
<style>BODY{font:10pt Tahoma, Verdana, sans-serif}</style></head><body>
Hi list,<br><br>I'm currently trying to filter features from a layer via a SLD, but using the style defined by the service. I managed to get a NamedStyle by defining a classgroup and assigning the class with the group. <br><br>When I set the style via SLD to mv2, it works perfectly, but when I add the filterpart (LayerFeatureConstraints) it fails: the default style is used and no filtering occurs.<br><br>Am I doing something wrong, of is filtering nog possible via LayerFeatureConstraints?<br><br>Mapfile:<br><br>layer<br>  name telpunten_motorvoertuig_punt<br>  CLASSGROUP "mv"<br>  metadata<br>    "wms_title" "telpunten_points"<br>    "gml_include_items" "all"<br>    "wfs_featureid" "id"<br>  end<br>  group telpunten<br>  status off<br>  type point<br>  dump true<br>  template bla  <br>  connectiontype postgis<br>  connection CONNECTIONSTATEMENT<br>  data "locatie from (select id, nummer, locatie, coalesce(soort,'Onbekend') as wb_soort, wegnummer from telpunt ) as foo using srid=28992 using unique id"<br>  projection<br>    "init=epsg:28992"<br>  end<br>  classitem wb_soort<br><br>  class<br>    NAME "motorvoertuig"<br>    group "mv"<br>    expression "MOTORVOERTUIG"<br>    style    <br><br>        symbol "square"<br>        color 0 204 204<br>        outlinecolor 0 0 0<br>        size 8<br>    end<br>  end<br>  <br>  class<br>    NAME "motorvoertuig2"<br>    group "mv2"<br>    expression "MOTORVOERTUIG"<br>    style    <br><br>        symbol "square"<br>        color 255 0 0<br>        outlinecolor 0 0 0<br>        size 8<br>    end<br>  end<br><br><br>  processing "CLOSE_CONNECTION=DEFER"<br>end<br><br>The SLD:<br><?xml version="1.0" encoding="UTF-8"?><br><br><sld:StyledLayerDescriptor xmlns:app="http://www.deegree.org/app" xmlns:deegreeogc="http://www.deegree.org/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:sld="http://www.opengis.net/sld" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:se="http://www.opengis.net/se" version="1.0.0"><br>    <sld:NamedLayer xmlns="http://www.opengis.net/sld"><br>        <se:Name>telpunten_motorvoertuig_punt</se:Name><br>        <sld:NamedStyle><br>            <se:Name>mv</se:Name><br>        </sld:NamedStyle><br>        <sld:LayerFeatureConstraints><br>            <Fsld:eatureTypeConstraint><br>                <ogc:Filter><br>                    <ogc:PropertyIsEqualTo><br>                        <ogc:PropertyName>wegnummer</ogc:PropertyName><br>                        <ogc:Literal>A28</ogc:Literal><br>                    </ogc:PropertyIsEqualTo><br>                </ogc:Filter><br>            </sld:FeatureTypeConstraint><br>        </sld:LayerFeatureConstraints><br>    </sld:NamedLayer><br></sld:StyledLayerDescriptor><br><br><br>
Thanks in advance!<br><br><br>Meine Toonen<br>B3Partners BV<br>Tel: 030 214 2083</body></html>