13 Aug 2019

Spatial Join in QGIS 3.x with Field Calculator alone!!

For example I want to join Polygon attribute values to a point layer. So, edit mode in target layer, check "Update Field" and put field you want to join to. Then use this in expression builder, where is the join layer, aggregate is the function to be used on attribute values that intersect the target geometry, and is the join attribute, from where the values come!

aggregate(layer:='BIKFFH_Karwendel BIKFFH_PL', aggregate:='sum', expression:="LNUMMER", filter:=intersects($geometry,geometry(@parent) )) 

No comments :

Post a comment