According to informations from this site I can use "SELECTION parameter" with GetPrint Request. I tried to achieve this but without success. With GetMap request everything is OK.
Can some one help me with this?
Here are my tests - URL's and result images.
WMS GetMap request without selection:
http://192.168.1.14/cgi-bin/qgis_mapserv?
map=/home/user/map.qgs&
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetMap&
CRS=EPSG:2180&
BBOX=-1,-1,1,1&
FORMAT=image/png&
LAYERS=test&
WIDTH=500&
HEIGHT=500
WMS GetMap request with selection:
http://192.168.1.14/cgi-bin/qgis_mapserv?map=/home/user/map.qgs&
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetMap&
CRS=EPSG:2180&
BBOX=-1,-1,1,1&
FORMAT=image/png&
LAYERS=test&
WIDTH=500&
HEIGHT=500&
SELECTION=test:0
WMS GetPrint request without selection:
http://192.168.1.14/cgi-bin/qgis_mapserv?map=/home/user/map.qgs&
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetPrint&
CRS=EPSG:2180&
map0:EXTENT=-1,-1,1,1&
FORMAT=image/png&
LAYERS=test&
TEMPLATE=1
And WMS GetPrint request with selection (image look exactly same):
http://192.168.1.14/cgi-bin/qgis_mapserv?map=/home/user/map.qgs&
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetPrint&
CRS=EPSG:2180&
map0:EXTENT=-1,-1,1,1&
FORMAT=image/png&
LAYERS=test&
TEMPLATE=1&
SELECTION=test:0
Here example with FILTER parameter:
http://192.168.1.14/cgi-bin/qgis_mapserv?map=/home/user/map.qgs&
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetPrint&
CRS=EPSG:2180&
map0:EXTENT=-1,-1,1,1&
FORMAT=image/png&
LAYERS=test&
TEMPLATE=1&
FILTER=test:%20%22FID%22%20=%200