WMS GetFeatureInfo with Filter

1 message Options
Embed this post
Permalink
stash

WMS GetFeatureInfo with Filter

Reply Threaded More More options
Print post
Permalink
Hi,
I have a GetFeatureInfo Request with the following code:

 map.events.register('click', map, function(e) {
 var url = "http://.../geoserver/wms" + "?REQUEST=GetFeatureInfo" + "&EXCEPTIONS=application/vnd.ogc.se_xml"
 + "&BBOX=" + map.getExtent().toBBOX()
 + "&X=" + e.xy.x
 + "&Y=" + e.xy.y
 + "&INFO_FORMAT=text/html"
 + "&QUERY_LAYERS="+my_layer.params.LAYERS
//+ "&LAYERS="+my_layer
 + "&FEATURE_COUNT=50"
 + "&SRS=EPSG:4326"
 + "&STYLES="
 + "&WIDTH=" + map.size.w
 + "&HEIGHT=" + map.size.h;
 window.open(url, "getfeatureinfo", "location=0,status=0,scrollbars=1,width=800,height=400" );
});


This is working fine so far. But now, I want to include a filter in this getFeatureInfo Request, that I don't get the FeatureInfo from all my data.

Is this possible? How can I do that?

Regards
stash