Calling a Python function for each page in an atlasQGIS Atlas with insert mapHow to filter legend by map content in composer with raster layers?Setting grid in QGIS that automatically adjust its intervals?QGIS Processing Script Stops Working After First RunAdding processed features and layer to QGIS 3 projectHow do I make a map's background transparent in a layout?Plugin widget, include file extension by defaultQGIS Atlas with insert mapPyQGIS - QgsProcessingParameterFeatureSink, Why is user input required?PYQGIS 3 Using the ouptut from GRASS v.distance algorithmQGIS Python get current atlas page name
Shall I use personal or official e-mail account when registering to external websites for work purpose?
How can I plot a Farey diagram?
Does bootstrapped regression allow for inference?
If a centaur druid Wild Shapes into a Giant Elk, do their Charge features stack?
"My colleague's body is amazing"
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
Unbreakable Formation vs. Cry of the Carnarium
Why is my log file so massive? 22gb. I am running log backups
How to move the player while also allowing forces to affect it
LWC and complex parameters
Was there ever an axiom rendered a theorem?
Are cabin dividers used to "hide" the flex of the airplane?
Can a planet have a different gravitational pull depending on its location in orbit around its sun?
What are the advantages and disadvantages of running one shots compared to campaigns?
Is this food a bread or a loaf?
How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)
Why was the "bread communication" in the arena of Catching Fire left out in the movie?
Does a dangling wire really electrocute me if I'm standing in water?
What is GPS' 19 year rollover and does it present a cybersecurity issue?
Email Account under attack (really) - anything I can do?
aging parents with no investments
Doomsday-clock for my fantasy planet
Why airport relocation isn't done gradually?
Where to refill my bottle in India?
Calling a Python function for each page in an atlas
QGIS Atlas with insert mapHow to filter legend by map content in composer with raster layers?Setting grid in QGIS that automatically adjust its intervals?QGIS Processing Script Stops Working After First RunAdding processed features and layer to QGIS 3 projectHow do I make a map's background transparent in a layout?Plugin widget, include file extension by defaultQGIS Atlas with insert mapPyQGIS - QgsProcessingParameterFeatureSink, Why is user input required?PYQGIS 3 Using the ouptut from GRASS v.distance algorithmQGIS Python get current atlas page name
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have made a script to do some calculations for each page of a QGIS atlas (QGIS Atlas with insert map)
The script is adjusting the bounding box of a map on the layout page. To make it run for each page, I have made a textbox where the script is returning nothing. I do not care for the return value, I just want the side effect of having the bounding box adjusted. The solution is working nicely, but it feels a bit kludgy.
Is there anywhere else I could put the script to make it run once per page for my atlas?
(using qgis 3.6.1 on windows 10)
Correction: When testing a bit more, it turns out some maps are being exported before they have finished rendering (I am fetching some relatively large data sets from a wms-server). When I browse manually through the maps, it goes a little slow, but when I export the entire atlas, for about one third of the maps, the map I am adjusting manually is showing the map from the former page.
qgis-3 pyqgis-3 qgis-print-layouts
add a comment |
I have made a script to do some calculations for each page of a QGIS atlas (QGIS Atlas with insert map)
The script is adjusting the bounding box of a map on the layout page. To make it run for each page, I have made a textbox where the script is returning nothing. I do not care for the return value, I just want the side effect of having the bounding box adjusted. The solution is working nicely, but it feels a bit kludgy.
Is there anywhere else I could put the script to make it run once per page for my atlas?
(using qgis 3.6.1 on windows 10)
Correction: When testing a bit more, it turns out some maps are being exported before they have finished rendering (I am fetching some relatively large data sets from a wms-server). When I browse manually through the maps, it goes a little slow, but when I export the entire atlas, for about one third of the maps, the map I am adjusting manually is showing the map from the former page.
qgis-3 pyqgis-3 qgis-print-layouts
add a comment |
I have made a script to do some calculations for each page of a QGIS atlas (QGIS Atlas with insert map)
The script is adjusting the bounding box of a map on the layout page. To make it run for each page, I have made a textbox where the script is returning nothing. I do not care for the return value, I just want the side effect of having the bounding box adjusted. The solution is working nicely, but it feels a bit kludgy.
Is there anywhere else I could put the script to make it run once per page for my atlas?
(using qgis 3.6.1 on windows 10)
Correction: When testing a bit more, it turns out some maps are being exported before they have finished rendering (I am fetching some relatively large data sets from a wms-server). When I browse manually through the maps, it goes a little slow, but when I export the entire atlas, for about one third of the maps, the map I am adjusting manually is showing the map from the former page.
qgis-3 pyqgis-3 qgis-print-layouts
I have made a script to do some calculations for each page of a QGIS atlas (QGIS Atlas with insert map)
The script is adjusting the bounding box of a map on the layout page. To make it run for each page, I have made a textbox where the script is returning nothing. I do not care for the return value, I just want the side effect of having the bounding box adjusted. The solution is working nicely, but it feels a bit kludgy.
Is there anywhere else I could put the script to make it run once per page for my atlas?
(using qgis 3.6.1 on windows 10)
Correction: When testing a bit more, it turns out some maps are being exported before they have finished rendering (I am fetching some relatively large data sets from a wms-server). When I browse manually through the maps, it goes a little slow, but when I export the entire atlas, for about one third of the maps, the map I am adjusting manually is showing the map from the former page.
qgis-3 pyqgis-3 qgis-print-layouts
qgis-3 pyqgis-3 qgis-print-layouts
edited Apr 5 at 7:40
MortenSickel
asked Apr 4 at 8:32
MortenSickelMortenSickel
241211
241211
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317738%2fcalling-a-python-function-for-each-page-in-an-atlas%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317738%2fcalling-a-python-function-for-each-page-in-an-atlas%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown