Hi Marco, Thank you for your answer. I was using the 1.7.0 tarball. I tried with this today, with no success: wget --no-check-certificate https://github.com/qgis/Quantum-GIS/tarball/master I still cannot get it to work (I still get all features). Could you please be more specific on the URL of a tarball for the version you are speaking of? Or is this only available using a full local git install?
Thank you, Mayeul ----- Mail Original ----- De: "Marco Hugentobler" <marco.hugentob...@sourcepole.ch> À: qgis-user@lists.osgeo.org Cc: "mayeul kauffmann" <mayeul.kauffm...@free.fr> Envoyé: Vendredi 23 Septembre 2011 22h16:38 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [Qgis-user] FILTER/selection on WMS request Hi Mayeul > I use qgis-server 1.7.0 compiled from source (dated 2011-09-16). Are you using the 1_7_0 branch or the latest dev version? The selection and filtering with QGIS server are only contained in the developer version. >&SELECTION=AOIs_Summer2011:36 This syntax looks good to me. >&FILTER=AOIs_Summer2011:"ACTIVE"='y' Here it probably needs additional spaces around '=' (...&FILTER=AOIs_Summer2011:"ACTIVE" = 'y'). With the additional spaces, it is easier for the server to check the sql-injection safety of the string. Regards, Marco Am Freitag, 23. September 2011, 19.57:01 schrieb mayeul.kauffm...@free.fr: > Hi, > I cannot get the FILTER or SELECTION parameter to work. I always get all > features. I want to show (in my general map) where the other (smaller) > maps are. I read this: > http://www.qgis.org/wiki/QGIS_Server_Tutorial#FILTER_parameter > > I use qgis-server 1.7.0 compiled from source (dated 2011-09-16). > I use this kind of request: > > http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/home/kauffml/Kimberley/QGIS > /Marange_2011-09-23_mk_tmp_2011-09-23_19h31m07s_200.qgs&SERVICE=WMS&VERSION > =1.3.0&REQUEST=GetPrint&CRS=EPSG:32736&FORMAT=png&DPI=96&map0:EXTENT=442303 > ,7826493,443122,7827312&map0:LAYERS=15_SEPTEMBER_2010&map1:EXTENT=442303,78 > 26493,443122,7827312&map1:LAYERS=features_colored&map2:EXTENT=442303,782649 > 3,443122,7827312&map2:LAYERS=Spring2011&map3:EXTENT=442303,7826493,443122,7 > 827312&map4:LAYERS=AOIs_Summer2011,2011JulyAugust&map4:EXTENT=419701,781270 > 1,447025,7841669&map3:LAYERS=2011JulyAugust&LAYERS=15_SEPTEMBER_2010,Spring > 2011,2011JulyAugust,AOIs_Summer2011,features_colored&template=composer1&SEL > ECTION=AOIs_Summer2011:36 > > or > > > http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/home/kauffml/Kimberley/QGIS > /Marange_2011-09-23_mk_tmp_2011-09-23_19h31m07s_800.qgs&SERVICE=WMS&VERSION > =1.3.0&REQUEST=GetPrint&CRS=EPSG:32736&FORMAT=png&DPI=96&map0:EXTENT=443130 > ,7832515,446813,7836198&map0:LAYERS=15_SEPTEMBER_2010&map1:EXTENT=443130,78 > 32515,446813,7836198&map1:LAYERS=features_colored&map2:EXTENT=443130,783251 > 5,446813,7836198&map2:LAYERS=Spring2011&map3:EXTENT=443130,7832515,446813,7 > 836198&map4:LAYERS=AOIs_Summer2011,2011JulyAugust&map4:EXTENT=419701,781270 > 1,447025,7841669&map3:LAYERS=2011JulyAugust&LAYERS=15_SEPTEMBER_2010,Spring > 2011,2011JulyAugust,AOIs_Summer2011,features_colored&template=composer1&FIL > TER=AOIs_Summer2011:"ACTIVE"='y' > > Thanks for any help! > Mayeul > _______________________________________________ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user _______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user