<div dir="ltr">I have used a virtual layer to do the following<div>select * from layer1</div><div>union all</div><div>select * from layer2</div><div><br></div><div>The resulting virtual layer can then be saved.</div><div>This gives an opportunity to harmonize attribute names if necessary, by replacing the * with individual attributes.</div><div><br></div><div>Arni</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><font color="#666666">Árni Geirsson<br><span style="font-size:x-small"><font color="#666666"><b>Alta ehf</b> // +354 582 5000 // +354 897 9549</font></span></font></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 10 March 2017 at 05:18, damien stephens <span dir="ltr"><<a href="mailto:damien.stephens@gmail.com" target="_blank">damien.stephens@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I would copy one and paste as a new layer eg shapefile, then select the next set of data and page to my new shape file.<div>Not scratch layers, but it works.</div><div>Cheers<div><div class="h5"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, 10 Mar 2017, 04:33 Tobias Wendorff <<a href="mailto:tobias.wendorff@tu-dortmund.de" target="_blank">tobias.wendorff@tu-dortmund.<wbr>de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there.<br class="m_4143931324161801630gmail_msg">
<br class="m_4143931324161801630gmail_msg">
Is there any way to merge two scratch layers? Even big ones...<br class="m_4143931324161801630gmail_msg">
I've tried the one in SAGA, in MMQGIS and the native QGIS one.<br class="m_4143931324161801630gmail_msg">
<br class="m_4143931324161801630gmail_msg">
SAGA's executable crashed after 5 minutes, but QGIS was alive.<br class="m_4143931324161801630gmail_msg">
MMQGIS also throw out an error after some minutes of processing.<br class="m_4143931324161801630gmail_msg">
<br class="m_4143931324161801630gmail_msg">
And the native one tells me:<br class="m_4143931324161801630gmail_msg">
"global name 'dataobjects' is not defined See log for more details"<br class="m_4143931324161801630gmail_msg">
Actually, this sems to be a bug in "Merge.py":<br class="m_4143931324161801630gmail_msg">
"layer = dataobjects.getObjectFromUri(<wbr>layerSource)"<br class="m_4143931324161801630gmail_msg">
<br class="m_4143931324161801630gmail_msg">
I've ended up selection all elements and copy & paste them to a<br class="m_4143931324161801630gmail_msg">
new layer. But there's also an unexpected event: even when you've<br class="m_4143931324161801630gmail_msg">
selected all the elements in two layers, you can copy the layer,<br class="m_4143931324161801630gmail_msg">
which is currently selected in the layers panel. Is this a bug?<br class="m_4143931324161801630gmail_msg">
<br class="m_4143931324161801630gmail_msg">
How do you merge layers? Sure, there's ogr2ogr - but I want<br class="m_4143931324161801630gmail_msg">
to use QGIS. Of course, I'm merging layers with the same<br class="m_4143931324161801630gmail_msg">
geometry only (f.e. points).<br class="m_4143931324161801630gmail_msg">
<br class="m_4143931324161801630gmail_msg">
Best regards,<br class="m_4143931324161801630gmail_msg">
Tobias<br class="m_4143931324161801630gmail_msg">
<br class="m_4143931324161801630gmail_msg">
______________________________<wbr>_________________<br class="m_4143931324161801630gmail_msg">
Qgis-user mailing list<br class="m_4143931324161801630gmail_msg">
<a href="mailto:Qgis-user@lists.osgeo.org" class="m_4143931324161801630gmail_msg" target="_blank">Qgis-user@lists.osgeo.org</a><br class="m_4143931324161801630gmail_msg">
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" class="m_4143931324161801630gmail_msg" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br class="m_4143931324161801630gmail_msg">
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" class="m_4143931324161801630gmail_msg" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a></blockquote></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>