<div dir="auto"><div>Cory and list<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 30, 2021, 17:09 Cory Albrecht <<a href="mailto:maps@hanfastolfe.com">maps@hanfastolfe.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:monospace">Hello,</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">I am looking for a way to select an arbitrary number features in one layer and then copy the values of their id fields into fields of an arbitrary feature in a second layer.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">For example, I have one layer which is the polygons for countries with the field <i>feathure_uuid</i>, and a second layer that has the border lines between the countries with two fields <i>north_east_feature</i> and <i>south_west_feature</i>. I'd like to be able to select the two country features on the opposite sides of the border line and have <i>countries.feature_uuid</i> for each one placed into borders.<i style="font-family:Arial,Helvetica,sans-serif">north_east_feature</i><span style="font-family:Arial,Helvetica,sans-serif"> and border.</span><i style="font-family:Arial,Helvetica,sans-serif">south_west_feature</i><span style="font-family:Arial,Helvetica,sans-serif">.</span></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Not completely following you here but the normal thing is to do a "join" between two tables on a common attribute.</div><div dir="auto"><br></div><div dir="auto">Sometimes it's necessary to compute that attribute first in each table.</div><div dir="auto"><br></div><div dir="auto">When you right click on a layer and click on properties you'll see the option to define joins.</div><div dir="auto"><br></div><div dir="auto">Does this help?</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:monospace"><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div class="gmail_default" style="font-family:monospace"><span style="font-family:Arial,Helvetica,sans-serif">Do I have to finally bite the bullet and learn python to do this, or is there some combination of existing tools I can use to do it instead?</span></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This kind of thing can be precomputed with Python or awk or some other scripting language by working on the CSV version of the attribute tables and calculating the common attribute that way. But I'd try just using the field calculator and then table join in QGIS first.</div><div dir="auto"><br></div><div dir="auto">It would help if you would post some examples with real "numbers".</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>