<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Filtering GetFeatureInfo requests</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi list,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">At the moment I am trying to figure out how to include a filter statement in a GetFeatureInfo request. I already tested this using a SLD-filter which works fine with a GetMap request. However, when combining this with a GetFeatureInfo request, I get all the features at that point. There is no filter being applied.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I'm puzzled. </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">First of all this is the SLD filter I am using:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;StyledLayerDescriptor version=&quot;1.0.0&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; xmlns=&quot;<A HREF="http://www.opengis.net/sld">http://www.opengis.net/sld</A>&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; xmlns:ogc=&quot;<A HREF="http://www.opengis.net/ogc">http://www.opengis.net/ogc</A>&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; xmlns:xlink=&quot;<A HREF="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</A>&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; xmlns:xsi=&quot;<A HREF="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; xsi:schemaLocation=&quot;<A HREF="http://www.opengis.net/sld">http://www.opengis.net/sld</A></FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; </FONT><A HREF="http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd</FONT></U></A><FONT SIZE=2 FACE="Arial">&quot;&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;NamedLayer&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;Name&gt;sdo_ldw_ccw_vlk&lt;/Name&gt; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;UserStyle&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Title&gt;nvt&lt;/Title&gt; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Abstract&gt;nvt&lt;/Abstract&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FeatureTypeStyle&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Rule&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Filter&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:PropertyIsLike wildcard='*' singleChar='.' escape='!'&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:PropertyName&gt;LOC_ZK&lt;/PropertyName&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ogc:Literal&gt;*WERELD*&lt;/Literal&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ogc:PropertyIsLike&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ogc:Filter&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Rule&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/FeatureTypeStyle&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;/UserStyle&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;/NamedLayer&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;/StyledLayerDescriptor&gt;</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">I use this GetMap request (works fine):</FONT>
</P>

<P><A HREF="http://&lt;server&gt;/cgi-bin/mapserv.exe?map=&lt;path&gt;\ldw_bsb_sdo.map&amp;LAYERS=sdo_ldw_ccw_vlk&amp;STYLES=&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:28992&amp;BBOX=91000,435250,94000,438250&amp;WIDTH=750&amp;HEIGHT=750&amp;FORMAT=image/png&amp;TRANSPARENT=FALSE&amp;BGCOLOR=0xFFFFFF&amp;SERVICE=WMS&amp;SLD=http://&lt;server&gt;/db_vla_str.xml"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://&lt;server&gt;/cgi-bin/mapserv.exe?map=&lt;path&gt;\ldw_bsb_sdo.map&amp;LAYERS=sdo_ldw_ccw_vlk&amp;STYLES=&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:28992&amp;BBOX=91000,435250,94000,438250&amp;WIDTH=750&amp;HEIGHT=750&amp;FORMAT=image/png&amp;TRANSPARENT=FALSE&amp;BGCOLOR=0xFFFFFF&amp;SERVICE=WMS&amp;SLD=http://&lt;server&gt;/db_vla_str.xml</FONT></U></A></P>
<BR>

<P><FONT SIZE=2 FACE="Arial">I use this GetFeatureInfo request (sadly doesn't work):</FONT>
</P>

<P><A HREF="http://&lt;server&gt;/cgi-bin/mapserv.exe?map=&lt;path&gt;\ldw_bsb_sdo.map&amp;LAYERS=sdo_ldw_ccw_vlk&amp;STYLES=&amp;VERSION=1.1.1&amp;REQUEST=GetFeatureInfo&amp;SRS=EPSG:28992&amp;BBOX=91000,435250,94000,438250&amp;WIDTH=750&amp;HEIGHT=750&amp;QUERY_LAYERS=sdo_ldw_ccw_vlk&amp;X=325&amp;Y=662&amp;SERVICE=WMS&amp;FEATURE_COUNT=25&amp;INFO_FORMAT=application/vnd.ogc.gml&amp;SLD=http://&lt;server&gt;/db_vla_str.xml"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://&lt;server&gt;/cgi-bin/mapserv.exe?map=&lt;path&gt;\ldw_bsb_sdo.map&amp;LAYERS=sdo_ldw_ccw_vlk&amp;STYLES=&amp;VERSION=1.1.1&amp;REQUEST=GetFeatureInfo&amp;SRS=EPSG:28992&amp;BBOX=91000,435250,94000,438250&amp;WIDTH=750&amp;HEIGHT=750&amp;QUERY_LAYERS=sdo_ldw_ccw_vlk&amp;X=325&amp;Y=662&amp;SERVICE=WMS&amp;FEATURE_COUNT=25&amp;INFO_FORMAT=application/vnd.ogc.gml&amp;SLD=http://&lt;server&gt;/db_vla_str.xml</FONT></U></A></P>

<P><FONT SIZE=2 FACE="Arial">I have tested this on Mapserver 5.2.1 and 5.6.3 without success.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Has anyone got an idea how to solve this? Any help would be much appreciated! Thanks in advance.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Geert<B></B></FONT>
</P>
<BR>
<BR>

</BODY>
</HTML>