qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.31k stars 2.97k forks source link

GeoPDF feature not working from Report Composer #46807

Closed LimestoneBob closed 2 years ago

LimestoneBob commented 2 years ago

What is the bug or the crash?

QGIS version | 3.16.6-Hannover | QGIS code revision | bfd36fddc9 on Windows 10

I'm unable to create and publish atlas maps in GeoPDF through Report composer.

Choosing PDF Export from the Report Composer doesn't provide full view of options. I suspect there is a check box missing ( or not within view ) preventing the creation of a GeoPDF. The North Road folks show an "“Include vector feature information” checkbox" as an option in menu. That option is not there or doesn't show. The menu items are crowded ( overlapped and/or not visible) in window so unable to confirm that is in fact the issue. A PDF can be created but without the GeoPDF layers and features.

GeoPDF creation works fine from the canvas.

image

Steps to reproduce the issue

  1. Go to 'Project' then 'New Report'
  2. Create the report
  3. Click on 'Report' and then 'Export Report as PDF'.
  4. Key a name and Save the file.
  5. The PDF Export Options box appears, check 'Create Geospatial PDF'
  6. Choose save. The report composer generates a report in PDF but none of the layers or features are included.

image

Versions

QGIS version | 3.16.6-Hannover | QGIS code revision | bfd36fddc9

Compiled against Qt | 5.11.2 | Running against Qt | 5.11.2 Compiled against GDAL/OGR | 3.1.4 | Running against GDAL/OGR | 3.1.4 Compiled against GEOS | 3.8.1-CAPI-1.13.3 | Running against GEOS | 3.8.1-CAPI-1.13.3 Compiled against SQLite | 3.29.0 | Running against SQLite | 3.29.0 PostgreSQL Client Version | 11.5 | SpatiaLite Version | 4.3.0 QWT Version | 6.1.3 | QScintilla2 Version | 2.10.8 Compiled against PROJ | 6.3.2 | Running against PROJ | Rel. 6.3.2, May 1st, 2020 OS Version | Windows 10 (10.0) Active python plugins | BoundaryDelineation; CalculateGeometry; mmqgis; QuickOSM; quick_map_services; SemiAutomaticClassificationPlugin; StreetView; db_manager; MetaSearch; processing

Supported QGIS version

New profile

Additional context

No response

gioman commented 2 years ago

3.16.6-Hannover

@LimestoneBob update to 3.16.15 and try again.

LimestoneBob commented 2 years ago

I don't have the option to change versions easily. I'm working in an administrated system and any version change request goes through an acceptance, testing and packaging process.

I can put in a system ticket within work environment for more current version of QGIS if the bug has been corrected upstream.

roya0045 commented 2 years ago

I don't have the option to change versions easily. I'm working in an administrated system and any version change request goes through an acceptance, testing and packaging process.

I can put in a system ticket within work environment for more current version of QGIS if the bug has been corrected upstream.

If you have the right to install things that don't require admin privilege, qgis can be installer with user-rights from osgeo.

LimestoneBob commented 2 years ago

I don't have the option to change versions easily. I'm working in an administrated system and any version change request goes through an acceptance, testing and packaging process. I can put in a system ticket within work environment for more current version of QGIS if the bug has been corrected upstream.

If you have the right to install things that don't require admin privilege, qgis can be installer with user-rights from osgeo.

No admin rights and we can't install anything without full IT testing on system and approval.

gioman commented 2 years ago
  • Go to 'Project' then 'New Report'

  • Create the report

  • Click on 'Report' and then 'Export Report as PDF'.

  • Key a name and Save the file.

  • The PDF Export Options box appears, check 'Create Geospatial PDF'

  • Choose save. The report composer generates a report in PDF but none of the layers or features are included.

@LimestoneBob tested here with my own data on 3.16.15/Win10, and works as expected.

LimestoneBob commented 2 years ago

Ok, thank you. I've put in a request for installation of LTR 3.16.15.

LimestoneBob commented 2 years ago

My install was fast tracked and now completed. Same result as previous version. Attempting to create a Geospatial pdf results in a pdf with no layer option.

QGIS version 3.16.15-Hannover QGIS code revision e7fdad64
Compiled against Qt 5.15.2 Running against Qt 5.15.2
Compiled against GDAL/OGR 3.4.0 Running against GDAL/OGR 3.4.0
Compiled against GEOS 3.10.0-CAPI-1.16.0 Running against GEOS 3.10.0-CAPI-1.16.0
Compiled against SQLite 3.35.2 Running against SQLite 3.35.2
PostgreSQL Client Version 13.0 SpatiaLite Version 5.0.1
QWT Version 6.1.3 QScintilla2 Version 2.11.5
Compiled against PROJ 8.2.0 Running against PROJ Rel. 8.2.0, November 1st, 2021
OS Version Windows 10 Version 2009
Active python plugins CalculateGeometry; mmqgis; QuickOSM; quick_map_services; SemiAutomaticClassificationPlugin; StreetView; db_manager; MetaSearch; processing
gioman commented 2 years ago

Attempting to create a Geospatial pdf results in a pdf with no layer option.

@LimestoneBob then attach a sample project+sample data.

LimestoneBob commented 2 years ago

Still can't get it to work from my personal pc using linux and ver 3.10 or 3.22. with test data.

Report 2.pdf wolfeIsl_soil.zip WolfeIsland_qgz.zip .

gioman commented 2 years ago

wolfeIsl_soil.zip

@LimestoneBob can you add here a QGIS project that makes use of the datasources you attached? we must we sure we are testing the same project.

LimestoneBob commented 2 years ago

Project file attached above.

gioman commented 2 years ago

wolfeIsl_soil.zip

@LimestoneBob none of the layers the project requires are part of the zip with the data you have attached

image

LimestoneBob commented 2 years ago

The layers provided are the ones used for this exercise. Those other layers are not being actively used.

Screenshot from 2022-01-15 19-38-36 .

LimestoneBob commented 2 years ago

I've removed layers, saved the project and tried generating GeoPDF. It's not working. The attached project file reflects amendments.

WolfeIslandQGISprojfile.zip Wolfe Island Farmlands Report 6.pdf .

LimestoneBob commented 2 years ago

Creating a GeoPDF from canvas is possible from all the versions of QGIS i've mentioned in this post. It just doesn't work from the Report function on either operating system or QGIS versions.

Wolfe Island Farmlands.pdf

LimestoneBob commented 2 years ago

The "Include Vector Feature Information" checkbox is available in Canvas PDF but not the Report PDF option.

Screenshot from 2022-01-15 20-14-43 Screenshot from 2022-01-15 20-15-50

gioman commented 2 years ago

The "Include Vector Feature Information" checkbox is available in Canvas PDF but not the Report PDF option.

@LimestoneBob this seems irrelevant, as a geospatial layered PDF is created correctly from the layout composer. There seems to be something wrong only when exporting from the report tool.

LimestoneBob commented 2 years ago

...and not working from Print Layout Atlas.

gioman commented 2 years ago

...and not working from Print Layout Atlas.

@LimestoneBob it does work from print layouts here.

LimestoneBob commented 2 years ago

Odd. I've tried multiple OSs and QGIS versions on different devices with no luck.

Thanks anyway. I'm working on a different format for presentation in lieu.

On Tue., Jan. 18, 2022, 9:48 a.m. Giovanni Manghi, @.***> wrote:

...and not working from Print Layout Atlas.

@LimestoneBob https://github.com/LimestoneBob it does work from print layouts here.

— Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/46807#issuecomment-1015484935, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASAVTBQC65WTVA6QGJYFYQDUWV4UXANCNFSM5LZMP6IA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

roya0045 commented 2 years ago

Doesn't it require a specific driver or at least program to view geopdf? Could that be the part of the issue?

@gioman what do you usually use to view geopdf?

LimestoneBob commented 2 years ago

I don't think so. I can print a single feature to geopdf from canvas and view the layers in Firefox... although FF has some issues with layout. That's an FF thing as I tried on pdftron without issue.

On Tue., Jan. 18, 2022, 4:07 p.m. Alex, @.***> wrote:

Doesn't it require a specific driver or at least program to view geopdf? Could that be the part of the issue?

@gioman https://github.com/gioman what do you usually use to view geopdf?

— Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/46807#issuecomment-1015834512, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASAVTBSAKSTIDZ5ZROLOLNLUWXJCXANCNFSM5LZMP6IA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

nyalldawson commented 2 years ago

I think @gioman may be referring to exporting individual pages from a report/atlas to geopdf. Exporting the entire atlas/report to geopdf isn't supported.

LimestoneBob commented 2 years ago

Thanks for letting me know it's not an option. It shows as an option to select in those scenarios which leads to one thinking something is not working as expected.

On Tue., Jan. 18, 2022, 4:16 p.m. Nyall Dawson, @.***> wrote:

I think @gioman https://github.com/gioman may be referring to exporting individual pages from a report/atlas to geopdf. Exporting the entire atlas/report to geopdf isn't supported.

— Reply to this email directly, view it on GitHub https://github.com/qgis/QGIS/issues/46807#issuecomment-1015840508, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASAVTBXUNJV7ZI422HMAX7TUWXKBVANCNFSM5LZMP6IA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>