I am trying to find a way to measure minimum distance between two polygon layers in QGIS.
I have one polygon layer (orange) which represents hunting areas, and one polygon layer (green) which represent wind-turbine areas.
For each orange polygon, I want to get the minimum distance to ALL green polygons within 10,000m, also coupled with identify of the green polygons. The distance should preferably be from the edges of each polygon layer. But centroid distances might be valuable as well. The result should therefor be new columns in the orange attribute table containing green-id and distance.
Unfortunately it doesn't seem to work. I can preview the result in the field calculator, but when i press 'OK', the column values are still NULL. Same thing for both the distances and the IDs.