Bug report #13459

QGIS Server WMS GetPrint request don't respect SELECTION parameter

Added by Marcin Gontarek almost 9 years ago. Updated about 6 years ago.

Status:Closed
Priority:Normal
Assignee:René-Luc ReLuc
Category:QGIS Server
Affected QGIS version:2.10.1 Regression?:Yes
Operating System:Linux Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:21506

Description

Standard GetMap request:

http://gontar.local/cgi-bin/qgis_mapserv.fcgi?MAP=/home/gontar/qgis_server/test_proj.qgs&
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetMap&
CRS=EPSG:4326&
BBOX=1,1,2,2&
FORMAT=image/png&
LAYERS=polygons&
WIDTH=500&
HEIGHT=500

Vaild image
result: http://imgur.com/ykR3VgD

Valid GetMap request with SELECTION parameter:

http://gontar.local/cgi-bin/qgis_mapserv.fcgi?MAP=/home/gontar/qgis_server/test_proj.qgs&
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetMap&
CRS=EPSG:4326&
BBOX=1,1,2,2&
FORMAT=image/png&
LAYERS=polygons&
WIDTH=500&
HEIGHT=500&
SELECTION=polygons:0

Valid image
result: http://imgur.com/gGc98MB

GetPrint request without SELECTION parameter:

http://gontar.local/cgi-bin/qgis_mapserv.fcgi?MAP=/home/gontar/qgis_server/test_proj.qgs&
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetPrint&
CRS=EPSG:4326&
map0:EXTENT=1,1,2,2&
FORMAT=image/png&
LAYERS=polygons&
TEMPLATE=Comp1

Valid image
result: http://imgur.com/xjvEHww

GetPrint request with SELECTION parameter:

http://gontar.local/cgi-bin/qgis_mapserv.fcgi?MAP=/home/gontar/qgis_server/test_proj.qgs&
SERVICE=WMS&
VERSION=1.3.0&
REQUEST=GetPrint&
CRS=EPSG:4326&
map0:EXTENT=1,1,2,2&
FORMAT=image/png&
LAYERS=polygons&
TEMPLATE=Comp1&
SELECTION=polygons:0

Adding SELECTION parameter doesn't make difference
result: http://imgur.com/tauH5za

Project files and images uploaded to imgur

Tested on versions: 2.8.3, 2.10.1, master

qgis_server.zip - Project files (8.26 KB) Marcin Gontarek, 2015-09-30 02:12 AM

qgis_server_images.zip - Images uploaded to imgur (177 KB) Marcin Gontarek, 2015-09-30 02:12 AM

Associated revisions

Revision 268b9ac6
Added by René-Luc ReLuc about 6 years ago

[Server] Reactivate the capability to print selection with Server 2.18

The capability to print selection has been removed by the commit aaa7003 to
prevent accidental selections showing in exports from composer.

It is reactivated only for QGIS Server.

fixes #13459 QGIS Server WMS GetPrint request don't respect SELECTION parameter

Revision 74f27855
Added by René-Luc ReLuc over 5 years ago

[Server] Reactivate the capability to print selection with Server 3.4

The capability to print selection has been removed by the commit aaa7003 to
prevent accidental selections showing in exports from composer.

It is reactivated only for QGIS Server.

Fixes #13459 QGIS Server WMS GetPrint request don't respect SELECTION parameter

It's a forward porting of #7185

History

#1 Updated by Giovanni Manghi about 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#2 Updated by René-Luc ReLuc about 6 years ago

  • Pull Request or Patch supplied changed from No to Yes
  • Description updated (diff)
  • Assignee set to René-Luc ReLuc
  • Regression? changed from No to Yes

PR provided [Server] Reactivate the capability to print selection with Server 2.18 https://github.com/qgis/QGIS/pull/7185

#3 Updated by René-Luc ReLuc about 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF