This question already has an answer here:
The image below is of vineyard blocks on different soil types (four larger polygons - all different layers).
I would like to create a new attribute in the vineyard layer called soil type and fill it with the value from the four different soil type layer's attribute called description.
In the case where the soil types overlap the vineyard blocks, the attribute soil type should be where more than 50% of the block lies within the soil type. I have looked, but cannot find a answer.
I have tried geomwithin('Alluvial', 'Description') - a function I get in the field calculator after I installed the plugin refFunctions. However, this only works, of course, if the vineyard polygon is completely within the soil type. I have played around with Union, but I cannot see how that will help me.
Can someone please help me? I would prefer a expression, as I have no knowledge of scripting.