<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Nov 5, 2018 at 5:10 PM Andreas Neumann <<a href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi Alessandro,</p>
<p>Interesting. Deferred handling of bad layers is kind of related, but not exactly the same.</p>
<p>In my case I want to "bulk-change" a lot of layers (60+) from Postgis to Geopackage. The data itself is already converted and has exactly the same structure. After the data source change I want the data source to be permanent in the new project. So it is not just one or two, but a lot of layers. Some of them have additional filters, some don't.</p>
<p>Or - even better - allow to switch back and forth between Postgis and Geopackage from within the same project.<span style="font-size:10pt">But </span><a href="https://github.com/qgis/QGIS/pull/8359" rel="noopener noreferrer" target="_blank" style="font-size:10pt">https://github.com/qgis/QGIS/pull/8359</a><span style="font-size:10pt"> is already a very good start. Would it also handle "bulk" change for all data from the same source?</span></p></div></blockquote><div><br></div><div>No, but the API to do that is now in place.</div><div><br></div><div>Bulk change is actually something we should eventually implement, both for the initial handle bad layers and as a standalone utility (the latter could actually also be a plugin). </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>