<div dir="ltr">ok, you are right.<div><br></div><div>You can import your shapfiles into spatialite using dbmanager, then copy the definitions of the first layer, add column to the other layer and then export to shapefile.</div><div><br></div><div>Luca</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-22 5:17 GMT+02:00 Richard Males <span dir="ltr"><<a href="mailto:rbmales@gmail.com" target="_blank">rbmales@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>The join works without a common field of any kind, which is what I wanted, but unfortunately the field names get prefixed with the join layer.   When I export as shape file from the joined layer, I get field names like 'exported', 'exported_1', etc.   So I don't think the join will work, since what I want to do is preserve field names, just copying them from one layer to another.<br><br></div>Maybe some other approach?   I was hoping for an existing plug-in, but have not found anything in the repository.   Maybe a python script to export field names from existing layer?  I will explore that approach, although I am not very familiar with python scripting for QGIS, see if I can get started.<br><br></div>Thanks.<br><div><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 20, 2015 at 2:21 AM, Luca Lanteri <span dir="ltr"><<a href="mailto:mescal72@gmail.com" target="_blank">mescal72@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">why do you need the same geometry type in order to make a join ?<div>You just need one common field. </div><span><font color="#888888"><div><br></div><div>Luca</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-19 21:44 GMT+02:00 Joris Hintjens <span dir="ltr"><<a href="mailto:jorishin@gmail.com" target="_blank">jorishin@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I’d try “join layers” if they are the same geometry type <span><font color="#888888"><div><br></div><div>Joris</div></font></span><div><div><div><br><div><blockquote type="cite"><div>Op 17-okt.-2015, om 11:40 heeft Luca Lanteri <<a href="mailto:mescal72@gmail.com" target="_blank">mescal72@gmail.com</a>> het volgende geschreven:</div><br><div><p dir="ltr">You can make a join and then save as layer</p>
<div style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I have been looking for a capability (plugin or native QGIS) that will easily copy the field definitions (not the attribute data) from one layer to another layer.   To date I have not found it, I may be missing something obvious.  Any help/advice much appreciated.   <br><br>I have a layer with a bunch of fields already defined, and another layer with geometry but no additional fields.   I would like to add the field definitions from the first layer to the second layer, and then populate with the appropriate data for that layer.<br><br></div>Thanks.<br><br></div>Dick Males<br></div>Cincinnati, Ohio, USA<br></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div>
_______________________________________________<br>Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>
</blockquote></div><br></div>