-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Problem with QGIS Geospatial PDF generated from Layout Manager #60204
Comments
@grayson-a-lee, thanks for reporting. Please also provide the full QGIS version info ad requeated in the issue report form: "In the QGIS Help menu -> About, click in the table, Ctrl+A and then Ctrl+C. Finally paste here. Do not make a screenshot." |
Hello Andrea:
How do I send a sample layer and the PDF settings??
Grayson
…____
Grayson Lee
TC Advanced sRPAS/FAA Part 107 Pilot | BVLOS & Large RPAS Flight Operations | TC Flight Reviewer
Digital Content Solutions Inc.
<http://www.dcsdigital.ca/> https://www.DCSdigital.ca/
416.301.2750
From: Andrea Giudiceandrea ***@***.***>
Sent: January 21, 2025 5:54 PM
To: qgis/QGIS ***@***.***>
Cc: grayson-a-lee ***@***.***>; Mention ***@***.***>
Subject: Re: [qgis/QGIS] Problem with QGIS Geospatial PDF generated from Layout Manager (Issue #60204)
@grayson-a-lee <https://github.com/grayson-a-lee> , thanks for reporting.
It would be useful if you provided the project and a sample layer and all the PDF exporting settings used with which the issue occurs.
I've tried using the same CRS and extent with a sample layer and exporting a sample layout to an A1 GeoSpatial PDF and it seems to me the measurement in both QGIS and Adobe Reader are very close:
image.png (view on web) <https://github.com/user-attachments/assets/275b1074-176f-4dd9-b175-5c183f0b445e>
image.png (view on web) <https://github.com/user-attachments/assets/d70b4ce9-7305-494d-a3c8-b164f9edf731>
image.png (view on web) <https://github.com/user-attachments/assets/b19430ea-a9d2-4916-b1b2-dc626eb98a09>
—
Reply to this email directly, view it on GitHub <#60204 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BF6HKYMHM2LXEK42ZC2YGUT2L3FW5AVCNFSM6AAAAABVTLOLWCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBVHA4DMMJRGI> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/BF6HKYI26MAY3U67FAA7LDT2L3FW5A5CNFSM6AAAAABVTLOLWCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU3KKVKA.gif> Message ID: ***@***.*** ***@***.***> >
|
You can put the project file and the layer file(s) in a zip archive file and attach it in comment to this issue report. You can specify the PDF Export options just writing them in the same comment or attaching a screenshot of the PDF Export Options dialog window. |
Where do I find the layer file?
Grayson LeeTC Advanced RPAS/FAA Part 107 Pilot | Flight Reviewer | InstructorDigital Content Solutions Inc.https://www.DCSdigital.ca/416.301.2750
From: Andrea Giudiceandrea ***@***.***>Sent: Tuesday, January 21, 2025 6:46 PMTo: qgis/QGIS ***@***.***>Cc: grayson-a-lee ***@***.***>; Mention ***@***.***>Subject: Re: [qgis/QGIS] Problem with QGIS Geospatial PDF generated from Layout Manager (Issue #60204)
You can put the project file and the layer file(s) in a zip archive file and attach it in comment to this issue report. You can specify the PDF Export Options writing them in the same comment or attaching a screenshot of the PDF Export Options dialog window.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
Grayson LeeTC Advanced RPAS/FAA Part 107 Pilot | Flight Reviewer | InstructorDigital Content Solutions Inc.https://www.DCSdigital.ca/416.301.2750
|
Hi Andrea:
Did you get all the files you needed?
Thanks,
Grayson
…____
Grayson Lee
TC Advanced sRPAS/FAA Part 107 Pilot | BVLOS & Large RPAS Flight Operations | TC Flight Reviewer
Digital Content Solutions Inc.
<http://www.dcsdigital.ca/> https://www.DCSdigital.ca/
416.301.2750
From: Andrea Giudiceandrea ***@***.***>
Sent: January 21, 2025 6:47 PM
To: qgis/QGIS ***@***.***>
Cc: grayson-a-lee ***@***.***>; Mention ***@***.***>
Subject: Re: [qgis/QGIS] Problem with QGIS Geospatial PDF generated from Layout Manager (Issue #60204)
You can put the project file and the layer file(s) in a zip archive file and attach it in comment to this issue report. You can specify the PDF Export Options writing them in the same comment or attaching a screenshot of the PDF Export Options dialog window.
—
Reply to this email directly, view it on GitHub <#60204 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BF6HKYIQBWD2C3NKOHXNOST2L3L6XAVCNFSM6AAAAABVTLOLWCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBVHE3TAMZUGU> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/BF6HKYO2YCR3HPAUPAZFJPT2L3L6XA5CNFSM6AAAAABVTLOLWCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU3KPZ2S.gif> Message ID: ***@***.*** ***@***.***> >
|
No. |
What is still outstanding?
Grayson LeeTC Advanced RPAS/FAA Part 107 Pilot | Flight Reviewer | InstructorDigital Content Solutions Inc.https://www.DCSdigital.ca/416.301.2750
From: Andrea Giudiceandrea ***@***.***>Sent: Thursday, January 23, 2025 1:39 AMTo: qgis/QGIS ***@***.***>Cc: grayson-a-lee ***@***.***>; Mention ***@***.***>Subject: Re: [qgis/QGIS] Problem with QGIS Geospatial PDF generated from Layout Manager (Issue #60204)
No.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
Grayson LeeTC Advanced RPAS/FAA Part 107 Pilot | Flight Reviewer | InstructorDigital Content Solutions Inc.https://www.DCSdigital.ca/416.301.2750
|
@grayson-a-lee, as you can see, I've done a simple test trying to replicate the issue according to the given description, but it looks like I cannot replicate the issue: do you agree that the measurement in the QGIS's map (EPSG:2958) and in the PDF file exported from a layout, as can be seen in the screenshots provided by me, are the same? So it would be needed to provide a QGIS project file (containing a Layout) and at least a layer file and step-by-step instructions and parameters used in order to replicate the issue. |
Hi Andrea,I thought I sent you the QGIS project file and layout file a couple of days ago in a reply to your email.I could not upload them through the web portal as it would not accept the file types.
Grayson LeeTC Advanced RPAS/FAA Part 107 Pilot | Flight Reviewer | InstructorDigital Content Solutions Inc.https://www.DCSdigital.ca/416.301.2750
From: Andrea Giudiceandrea ***@***.***>Sent: Thursday, January 23, 2025 3:06 AMTo: qgis/QGIS ***@***.***>Cc: grayson-a-lee ***@***.***>; Mention ***@***.***>Subject: Re: [qgis/QGIS] Problem with QGIS Geospatial PDF generated from Layout Manager (Issue #60204)
@grayson-a-lee, as you can see, I've done a simple test trying to replicate the issue according to the given description, but it looks like I cannot replicate the issue: do you agree that the measurement in the QGIS's map (CRS) is EPSG:2958) and in the PDF file exported from a layout, as can be seen in the screenshots provided by me, are the same?
So it would be needed to provide a QGIS project file (containing a Layout) and a layer file and step-by-step instructions and parameters used in order to replicate the issue.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
Grayson LeeTC Advanced RPAS/FAA Part 107 Pilot | Flight Reviewer | InstructorDigital Content Solutions Inc.https://www.DCSdigital.ca/416.301.2750
|
As already said, you need to put the files in a zip archive and attach it to a comment to this issue report using the GitHub web interface. If the zip file is too large, please upload it online using a file sharing service and provide the URL to download it. |
Hi Andrea: Here are the files. Please let me know if you need anything else. |
@grayson-a-lee, although you didn't provide any layer file, I've managed to replicate the issue using the provided project and layout and adding a sample memory layer created by me: it seems to me the issue is due to the fact that the layout contains 2 totally overlapping Map items ("Map 1" and "Map 2") with the same size and position in the page but different scale and extent. It looks like Adobe Acrobat Reader get confused due to the overlapping maps with different scales. You need to remove one of the two overlapping Map items in the layout and link the Scale bar and North arrow items to the correct remaining Map item. @rouault do you know if it is expected that overlapping maps in a PDF file exported from a layout by QGIS get incorrect georeferencing info when displayed in Adobe Acrobat Reader, i.e. it looks like that, for the overlapping part of the maps, Adobe Acrobat Reader takes georef info (or QGIS writes georef info) not from the uppermost map, but from the underlying one? |
How do I send the layer file?
Grayson LeeTC Advanced RPAS/FAA Part 107 Pilot | Flight Reviewer | InstructorDigital Content Solutions Inc.https://www.DCSdigital.ca/416.301.2750
From: Andrea Giudiceandrea ***@***.***>Sent: Thursday, January 23, 2025 4:28 AMTo: qgis/QGIS ***@***.***>Cc: grayson-a-lee ***@***.***>; Mention ***@***.***>Subject: Re: [qgis/QGIS] Problem with QGIS Geospatial PDF generated from Layout Manager (Issue #60204)
@grayson-a-lee, although you didn't provide any layer file, I've managed to replicate the issue using the provided project and layout and adding a sample memory layer created by me: it seems to me the issue is due to the fact that the layout contains 2 totally overlapping Map items ("Map 1" and "Map 2") with the same size and position in the page but different scale and extent.
It looks like Adobe Acrobat Reader get confused due to the overlapping maps with different scales.
You need to remove one of the two overlapping Map items and link the Scale bar and North arrow items to the correct remaining Map item.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
Grayson LeeTC Advanced RPAS/FAA Part 107 Pilot | Flight Reviewer | InstructorDigital Content Solutions Inc.https://www.DCSdigital.ca/416.301.2750
|
Is this the layer file? |
And how do I remove one of the map items from the layout? |
Select it in the Items panel and delete it. Please read the QGIS Desktop User Guide / Manual at https://docs.qgis.org/3.34/en/docs/user_manual/print_composer/overview_composer.html#the-items-panel. For any other help, not related to any bug, about using QGIS, please consult the QGIS Desktop User Guide / Manual, the Gentle Introduction to GIS and the Training Manual and use https://lists.osgeo.org/mailman/listinfo/qgis-user or https://gis.stackexchange.com/. |
Hello Andrea: Many thanks for your help. Yes I was able to make things work after deleting the second map and relinking the scale bar and compass to the primary map. The reason this happened was because, as my background is in professional photography, I was attempting to create a print layout that had a pre-made border for the map. This resulted in getting two maps, one inset within another. Thank you for pointing out my error. Andrea, what is the best progression for me learning QGIS? I am not attempting to bypass the learning curve by being lazy. However, QGIS is pretty intimidating to a novice user. I have been flirting with it for several years. As my GIS requirements have increased over the years, I need to upgrade my QGIS skills as well. I want to be able to service my GIS needs with QGIS. Something like ArcGIS is not an option for me. Best, Grayson Also, is this the layer file you were looking for? I have never exported one before. (Just trying to learn lol) |
I've created a new simplified issue report with a simplified test project and layer (in order to make it easier for a developer to fix the bug) at #60248, so I'm closing this one. Thanks for reporting. |
What is the bug or the crash?
I have created a contour map in QGIS.
The Measure Tool in the main QGIS window shows a distance of about 439 meters for a feature.
When I output that contour map directly from the main QGIS window as a geospatial PDF, it also shows approximately the same distance using Geospatial Distance Tool in Adobe Acrobat Reader.
However, when I export the geospatial PDF using a layout from the QGIS layout manager, the Geospatial Distance Tool in Adobe Acrobat Reader shows a distance of 194.4 meters when measuring the same feature.
The Project Coordinate Reference System (CRS) is EPSG:2958 – NAD83(CSRS)/UTM zone 17N.
I am attaching the relevant files and layout template.
Contour Map Export_Layout Manager.pdf
Contour Map Export_Main QGIS Window.pdf
2024-12-31 Berm DSM_Ortho-Contour_elev50cm_res100cm_size20_DSM.pdf
Unfortunately, I am unable to upload the *.QPT template file.
I am using QGIS version 3.40.1-Bratislava
Please assist.
Steps to reproduce the issue
Contour Map Export_Layout Manager.pdf
Contour Map Export_Main QGIS Window.pdf
2024-12-31 Berm DSM_Ortho-Contour_elev50cm_res100cm_size20_DSM.pdf
Versions
Version 3.40.1-Bratislava
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: