-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add processing algorithms to export a print layout as PDF/image #36916
Conversation
(Lots more we could potentially do here: export as GeoPDF, export as SVG, export atlas/report as PDF/image/svg, set print layout map extent, set print layout map scale, ...! ) |
I would assume that data defined variables would still be valid for such exports. Would it be simpler in the future to have two export functions: export atlas layout and export layout? I would imagine that setting the output in the function would be simpler than having specific dedicated functions. |
Correct
Not really -- the advanced options are very different depending on the output format (svg/pdf/image), so we'd end up needing to expose a ton of options, of which only some apply depending on the format selected. The end result is a confusing set of parameters and poor UX (the grass algorithms suffer from this -- by necessity they expose a ton of different options, some of which are muttually exclusive or interdependant, and making the wrong selection of options results in errors or no output. To avoid this, the native QGIS algorithms have all been designed around the principal of keeping them as "atomic" as possible, and focused on doing one single task) |
…or image This allows for models which export print layouts from the current project. One use case for this is allowing users to create an in-project model which exports a particular set of layouts from the project to certain folders, so that they can easily re-export the current project in a single operation instead of having to manually open multiple layouts and export one-by-one. Additionally, with the new capabilities to have expression based output files inside models, you can automatically export the layouts to a folder with the current date tag and include this in the exported file names!
when editing a model which uses the print layout parameter type Instead of a plain text edit with no hints as to the current project's layouts
@nyalldawson @DelazJ The algs are in the cartography group, but are exclusive to the modeler. Would it make more sense to have them in the modeler group, or have them be available for qgis in general? |
@roya0045 I think you're being misled by the pr message. I never use these algs but I'm pretty sure (no computer around to check) that they can be used directly from the toolbox. Not exclusive to models. So "cartography" section it's. |
@DelazJ Yeah you're right, they are also available in standalone. Doc was fixed. |
This allows for models which export print layouts from the current project. One
use case for this is allowing users to create an in-project model which exports
a particular set of layouts from the project to certain folders, so that they
can easily re-export the current project in a single operation instead of
having to manually open multiple layouts and export one-by-one.
Additionally, with the new capabilities to have expression based output files
inside models, you can automatically export the layouts to a folder with
the current date tag and include this in the exported file names!