<!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"><?xml version="1.0" encoding="UTF-8"?></FONT>
<BR><FONT SIZE=2 FACE="Arial"><StyledLayerDescriptor version="1.0.0"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> xmlns="<A HREF="http://www.opengis.net/sld">http://www.opengis.net/sld</A>"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> xmlns:ogc="<A HREF="http://www.opengis.net/ogc">http://www.opengis.net/ogc</A>"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> xmlns:xlink="<A HREF="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</A>"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> xmlns:xsi="<A HREF="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> xsi:schemaLocation="<A HREF="http://www.opengis.net/sld">http://www.opengis.net/sld</A></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </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">"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial"> <NamedLayer></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Name>sdo_ldw_ccw_vlk</Name> </FONT>
<BR><FONT SIZE=2 FACE="Arial"> <UserStyle></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Title>nvt</Title> </FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Abstract>nvt</Abstract></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <FeatureTypeStyle></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Rule></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <ogc:Filter></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <ogc:PropertyIsLike wildcard='*' singleChar='.' escape='!'></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <ogc:PropertyName>LOC_ZK</PropertyName></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <ogc:Literal>*WERELD*</Literal></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </ogc:PropertyIsLike></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </ogc:Filter></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </Rule></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FeatureTypeStyle></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </UserStyle></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </NamedLayer></FONT>
<BR><FONT SIZE=2 FACE="Arial"></StyledLayerDescriptor></FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">I use this GetMap request (works fine):</FONT>
</P>
<P><A HREF="http://<server>/cgi-bin/mapserv.exe?map=<path>\ldw_bsb_sdo.map&LAYERS=sdo_ldw_ccw_vlk&STYLES=&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:28992&BBOX=91000,435250,94000,438250&WIDTH=750&HEIGHT=750&FORMAT=image/png&TRANSPARENT=FALSE&BGCOLOR=0xFFFFFF&SERVICE=WMS&SLD=http://<server>/db_vla_str.xml"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://<server>/cgi-bin/mapserv.exe?map=<path>\ldw_bsb_sdo.map&LAYERS=sdo_ldw_ccw_vlk&STYLES=&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:28992&BBOX=91000,435250,94000,438250&WIDTH=750&HEIGHT=750&FORMAT=image/png&TRANSPARENT=FALSE&BGCOLOR=0xFFFFFF&SERVICE=WMS&SLD=http://<server>/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://<server>/cgi-bin/mapserv.exe?map=<path>\ldw_bsb_sdo.map&LAYERS=sdo_ldw_ccw_vlk&STYLES=&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG:28992&BBOX=91000,435250,94000,438250&WIDTH=750&HEIGHT=750&QUERY_LAYERS=sdo_ldw_ccw_vlk&X=325&Y=662&SERVICE=WMS&FEATURE_COUNT=25&INFO_FORMAT=application/vnd.ogc.gml&SLD=http://<server>/db_vla_str.xml"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://<server>/cgi-bin/mapserv.exe?map=<path>\ldw_bsb_sdo.map&LAYERS=sdo_ldw_ccw_vlk&STYLES=&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG:28992&BBOX=91000,435250,94000,438250&WIDTH=750&HEIGHT=750&QUERY_LAYERS=sdo_ldw_ccw_vlk&X=325&Y=662&SERVICE=WMS&FEATURE_COUNT=25&INFO_FORMAT=application/vnd.ogc.gml&SLD=http://<server>/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>