Saturday, 22 June 2019

How to join attributes by location for more than one located feature in QGIS?


In the standard join attributes by locationfeature in QGIS 2.0/2.18, there are two options:




  • Take attributes first located feature

  • Take summary of intersecting features


Is there a function in QGIS that allows to take attributes of more than located feature? That is, to get ALL qualitative values the polygons that intersect/overlap. With an attribute column for the value of the first located feature, another for the second located feature, etc. This should work in cases where located features can overlap (e.g. species habitat polygons where more than one species can occupy the same location) but the original polygon onto which we want attributes of the second layer has spatially separate polygons (e.g. watersheds from which we want to know which species are present).


In my case here: I am working with one polygon shapefile from which I want to obtain the attributes for another polygon shapefile. According to the output from the summary of intersecting features, there are a total of up to seven intersecting features for a given polygon in the file I want to join to.


If the answer is "no", then please add as an official answer so I can mark it as answered. It seems that it is not possible in QGIS given the comments but it would be good to confirm. I may make a feature request.



Answer



It is now part of the standard options in QGIS 3.0 to join to more more than located feature. Many thanks to the developers that added this feature in the new release.


In the French version, the options under Joindre les attributs par localisation:



-Type de jointure


-Créez une entité distincte pour chaque entité située


enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...