<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hello Wouter,<br>
what do you mean with overwriting themselves. The Atlas needs a
value for the filename, which is derived from an entry of the
reference geometry?<br>
ciao Dieter<br>
<br>
<div class="moz-cite-prefix">On 20.12.2021 09:36, Wouter Impens
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACUU8UyJgc7ASOAV5ZvsWvASbjV0YCDwoXUhfwTJ4Z9YJuXOJA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Hannes,
<div><br>
</div>
<div>Thanks for your answer.</div>
<div>The names are unique. But the problem is not that one
atlas layout is overwriting another, they're overwriting
themselves. Ik only get the last page of each atlas. </div>
<div>While the atlas is exporting, I can see in the windows
explorer that a file is made and then reset to 0, only the
last atlas page is kept. </div>
<div><br>
</div>
<div>Greetings </div>
<div>Wouter</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Op ma 20 dec. 2021 om 09:28
schreef Johannes Kröger (WhereGroup) <<a
href="mailto:johannes.kroeger@wheregroup.com"
moz-do-not-send="true" class="moz-txt-link-freetext">johannes.kroeger@wheregroup.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hey Wouter,</p>
<p>what is the atlas' expression for the filenames? Make
sure they are unique, iterating and/or writing to a unique
directory.</p>
<p>Cheers, Hannes</p>
<br>
<div>Am 18.12.21 um 18:51 schrieb Wouter Impens:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<p class="MsoNormal"><span style="font-size:10pt">Dear
list, <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">When using the ‘maps printer’
plugin for a bunch of atlas layouts, the atlas
pages are constantly overwritten by the next
page, so I end up with only the last page in the
atlas layout. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">I used this before and it was
working perfectly. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">I also tried with the following
script: <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">import qgis.core<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">layouts_list =
QgsProject.instance().layoutManager().printLayouts()<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">for layout in layouts_list:<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> QgsLayoutExporter.exportToPdfs(layout.atlas(), <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> 'C:\\Users\\d08909\\Documents\\01_WERKMAP\\03_EXPORT\\', <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> QgsLayoutExporter.PdfExportSettings())<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">But it’s giving me the same result.
<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">Manually exporting the altlas
layouts one by one is no problem. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">I’m using QGIS 3.16.14 on windows.
<span></span></span></p>
<p class="MsoNormal"
style="margin-bottom:8pt;line-height:11.75pt"><span
style="font-size:10pt;color:black" lang="EN-US"> </span></p>
<p class="MsoNormal"
style="margin-bottom:8pt;line-height:11.75pt"><span
style="font-size:10pt;color:black">Any help is
apreciated!<span></span></span></p>
<p class="MsoNormal"
style="margin-bottom:8pt;line-height:11.75pt"><span
style="font-size:10pt;color:black"> </span></p>
<p class="MsoNormal"
style="margin-bottom:8pt;line-height:11.75pt"><span
style="font-size:10pt;color:black">Kind regards,
<span></span></span></p>
<p class="MsoNormal"
style="margin-bottom:8pt;line-height:11.75pt"><span
style="font-size:10pt;color:black">Wouter Impens</span></p>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font size="-2">
<font color="#000000">_________________</font>
<br>
<font color="#000000">Kronenbergstr. 7</font><br>
<font color="#000000">CH-8800 Thalwil </font>
<br>
<br>
<font color="#000000">+41 76 749 22 77</font>
<br>
<font color="#000000">+41 43 540 90 71</font><br>
</font>
<br>
<a href="https://helgawittstock.wixsite.com/privat"><font
color="#000000">my web-site</font></a><br>
</div>
</body>
</html>