I have a polygon shapefile and a line shapefile with several thousand features each. I want to get:
The nearest distance between a polygon and a line that have the same attribute (e.g. ID). Example here (I want to get the green line as an output).
I have played around with various combinations of all distance tools in QGIS, like Distance to nearest hub, Join attributes by nearest, v.distance.
v.distance SHOULD be able to do what I want with 'upload' = 'to_attr', but I am getting no output.