[Qgis-user] qgis server filter problem - strange behaviour

Frederick Löbig frederick.loebig at live.de
Tue Nov 18 09:38:31 PST 2014


Hi List,
I am using qgis-server on ubuntu 14.04 32 bit to build up some kind of search server. Since qgis-servers WMS with GetFeatureInfo does not require I/J or BBOX when a filter parameter is present, I am in no need to use a WFS to build a search for my application. However, everything is set up, but I'm experiencing a very strange behaviour I hope somebody can help me with:
Let's say I want to use the following filter: Id = 168
This is my request: 
http://192.168.178.64/cgi-bin/qgis_mapserv.fcgi?map=/home/floebig/qgprj/s_buedchen.qgs&FILTER=buedchen:%22Id%22=%22168%22&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=buedchen&QUERY_LAYERS=buedchen&FEATURE_COUNT=10&INFO_FORMAT=text/xml
The result:<GetFeatureInfoResponse><BoundingBox CRS="EPSG:4326" maxx="0" minx="0" maxy="0" miny="0"/><Layer name="buedchen"/></GetFeatureInfoResponse>
So far, so bad. If I use the following filter: Id < 168 everything works fine. The working request:http://192.168.178.64/cgi-bin/qgis_mapserv.fcgi?map=/home/floebig/qgprj/s_buedchen.qgs&FILTER=buedchen:%22Id%22%3C%22168%22&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=buedchen&QUERY_LAYERS=buedchen&FEATURE_COUNT=10&INFO_FORMAT=text/xml
The result is a perfectly fine list of Objects matching the filter criteria. So somehow, the mapserver has a problem with the equal-sign.. 
I hope someone can help me with this, it's driving me crazy. 
Here's a little bit of info:
OS: Ubuntu Server 14.04 32Bitqgis-server 2.6.0+trusty1Apache2: 2.4.10-1ubuntu1qGIS Project: 2.4GeoData format within the project is a GML file
Thanks in advance,
Cheers, Freddy 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20141118/127fa08b/attachment.html>


More information about the Qgis-user mailing list