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 issue: empty map in PDF #25416

Closed
qgib opened this issue Nov 22, 2017 · 3 comments
Closed

GetPrint issue: empty map in PDF #25416

qgib opened this issue Nov 22, 2017 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@qgib
Copy link
Contributor

qgib commented Nov 22, 2017

Author Name: Éric Lemoine (@elemoine)
Original Redmine Issue: 17519
Affected QGIS version: master
Redmine category:qgis_server
Assignee: Paul Blottiere


I have a case where the generated PDF has an empty map:

image

This is what I see in the QGIS Server logs:

8181][08:54:10] ******************** New request ***************
[8181][08:54:10] REMOTE_ADDR: 10.0.2.2
[8181][08:54:10] CONTENT_TYPE: application/x-www-form-urlencoded
[8181][08:54:10] HTTP_USER_AGENT: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
[8181][08:54:10] HTTP_AUTHORIZATION: Basic cGFnZ2Y6cGFnZ2Y=
[8181][08:54:10] Warning: error parsing post data as XML: at line 1, column 1: error occurred while parsing element. Assuming urlencoded query string sent in the post body.
[8181][08:54:10] formatString is: pdf
[8181][08:54:10] DPI:300
[8181][08:54:10] FORMAT:pdf
[8181][08:54:10] LAYERS:communes
[8181][08:54:10] MAP%25S%3AEXTENT:3272095.500363964,-429603.1550792752,3394505.062863964,-331713.4363292752
[8181][08:54:10] MAP%25S%3AGRID_INTERVAL_X:1000
[8181][08:54:10] MAP%25S%3AGRID_INTERVAL_Y:1000
[8181][08:54:10] MAP%25S%3AHIGHLIGHT_GEOM:
[8181][08:54:10] MAP%25S%3AHIGHLIGHT_LABELBUFFERCOLOR:white
[8181][08:54:10] MAP%25S%3AHIGHLIGHT_LABELBUFFERSIZE:1
[8181][08:54:10] MAP%25S%3AHIGHLIGHT_LABELCOLOR:black
[8181][08:54:10] MAP%25S%3AHIGHLIGHT_LABELSTRING:
[8181][08:54:10] MAP%25S%3AHIGHLIGHT_SYMBOL:
[8181][08:54:10] MAP%25S%3AROTATION:0
[8181][08:54:10] MAP%25S%3ASCALE:531250
[8181][08:54:10] OPACITIES:255
[8181][08:54:10] REQUEST:GetPrint
[8181][08:54:10] SERVICE:WMS
[8181][08:54:10] SRS:EPSG:3857
[8181][08:54:10] TEMPLATE:Carte
[8181][08:54:10] TRANSPARENT:true
[8181][08:54:10] VERSION:1.3
[8181][08:54:10] Field validity_period ignored, because of unsupported type r
[8181][08:54:10] Field validity_period ignored, because of unsupported type r
[8181][08:54:10] Field validity_period ignored, because of unsupported type r
[8181][08:54:10] Service WMS 1.3 not found, returning default
[8181][08:54:10] WMS Request parameters:
[8181][08:54:10]  - SRS : EPSG:3857
[8181][08:54:10]  - LAYERS : communes
[8181][08:54:10]  - OPACITIES : 255
[8181][08:54:10]  - FORMAT : pdf
[8181][08:54:10]  - TRANSPARENT : true
[8181][08:54:10]  - DPI : 300
[8181][08:54:10]  - TEMPLATE : Carte
[8181][08:54:10]  - VERSION : 1.3
[8181][08:54:10] Request finished in 362 ms

The map object in the composer is named "MAP 0", while the log trace above includes references to "MAP%25S", which is "MAP S".

And the GetProjectSettings response has this:

  <ComposerTemplates>
   <ComposerTemplate width="297" name="Carte" height="210">
    <ComposerMap width="230.418" name="map%s" height="184.263"/>
   </ComposerTemplate>
  </ComposerTemplates>

Suggesting that QGIS Server changes the map object from "map 0" to "map%s" in the GetProjectSettings.

@qgib
Copy link
Contributor Author

qgib commented Nov 22, 2017

Author Name: Paul Blottiere (Paul Blottiere)


  • assigned_to_id was configured as Paul Blottiere

@qgib
Copy link
Contributor Author

qgib commented Nov 27, 2017

Author Name: Paul Blottiere (Paul Blottiere)


Applied in changeset d0ffaa7.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Nov 27, 2017
@qgib
Copy link
Contributor Author

qgib commented Feb 22, 2018

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to fixed/implemented

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server labels May 25, 2019
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

No branches or pull requests

1 participant