Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetPrint request of Atlas Template doesn't respect Project scales #49900

Closed
2 tasks
enricofer opened this issue Aug 22, 2022 · 2 comments · Fixed by #50199
Closed
2 tasks

GetPrint request of Atlas Template doesn't respect Project scales #49900

enricofer opened this issue Aug 22, 2022 · 2 comments · Fixed by #50199
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@enricofer
Copy link
Contributor

What is the bug or the crash?

It appears that the GetPrint Request on QGIS server of Atlas Layout doesn't return the same result of a QGIS desktop print.
the setting the scale of a map item with "controlled by atlas/predefined scale (best fit)" doesn't work and the applied scale is the same of "fixed scale" option.

Steps to reproduce the issue

Put the attached dataset and project on a path accessible by qgis server and make a GetPrint request on TEST_ps template:
http://[path_to_server]?MAP=[path_to_test_dataset]/test_atlas.qgs&SERVICE=WMS&REQUEST=GetPrint&TEMPLATE=TEST_ps&ATLAS_PK=*&FORMAT=pdf&CRS=EPSG:32632&DPI=100
the resulting pdf will have all map frames at the same wrong fixed scale.

instead, the following request on template TEST_sf:
http://[path_to_server]?MAP=[path_to_test_dataset]/test_atlas.qgs&SERVICE=WMS&REQUEST=GetPrint&TEMPLATE=TEST_sf&ATLAS_PK=*&FORMAT=pdf&CRS=EPSG:32632&DPI=100
will return a pdf with a correct representation, the same of the desktop print
test_project_and_dataset.zip
.

Versions

tested on dockerized QGIS server 3.22 instance:
image: 3liz/qgis-map-server:3.22

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@enricofer enricofer added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Aug 22, 2022
@nicogodet
Copy link
Member

Are you using https://github.com/3liz/qgis-atlasprint ?

@nicogodet nicogodet added the Feedback Waiting on the submitter for answers label Aug 22, 2022
@enricofer
Copy link
Contributor Author

Maybe in the docker image is installed, but I verified the behaviour even on a standalone version without plugins

@nicogodet nicogodet added Server Related to QGIS server and removed Feedback Waiting on the submitter for answers labels Aug 22, 2022
@elpaso elpaso self-assigned this Sep 14, 2022
elpaso added a commit to elpaso/QGIS that referenced this issue Sep 14, 2022
elpaso added a commit to elpaso/QGIS that referenced this issue Sep 14, 2022
qgis-bot pushed a commit that referenced this issue Sep 15, 2022
qgis-bot pushed a commit that referenced this issue Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants