[Qgis-user] FILTER/selection on WMS request

mayeul.kauffmann at free.fr mayeul.kauffmann at free.fr
Fri Sep 23 10:57:01 PDT 2011


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,7826493,443122,7827312&map1:LAYERS=features_colored&map2:EXTENT=442303,7826493,443122,7827312&map2:LAYERS=Spring2011&map3:EXTENT=442303,7826493,443122,7827312&map4:LAYERS=AOIs_Summer2011,2011JulyAugust&map4:EXTENT=419701,7812701,447025,7841669&map3:LAYERS=2011JulyAugust&LAYERS=15_SEPTEMBER_2010,Spring2011,2011JulyAugust,AOIs_Summer2011,features_colored&template=composer1&SELECTION=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,7832515,446813,7836198&map1:LAYERS=features_colored&map2:EXTENT=443130,7832515,446813,7836198&map2:LAYERS=Spring2011&map3:EXTENT=443130,7832515,446813,7836198&map4:LAYERS=AOIs_Summer2011,2011JulyAugust&map4:EXTENT=419701,7812701,447025,7841669&map3:LAYERS=2011JulyAugust&LAYERS=15_SEPTEMBER_2010,Spring2011,2011JulyAugust,AOIs_Summer2011,features_colored&template=composer1&FILTER=AOIs_Summer2011:"ACTIVE"='y'

Thanks for any help!
Mayeul



More information about the Qgis-user mailing list