# Calculating distances between two features (polygons)

I'm a bit stuck on calculating distance between two polygon features (i.e. closest part of the polygon A to closest part of polygon B (not necessarily where the points are as sometimes a line between the points is closest).

I've figured out I need to convert the polygons to points so I've used 'points along geometry' to get points at 10m intervals along Polygon A and Polygon B's boundaries.

However, when I then try and pass these features through things like 'distance matrix' and 'shortest line between features' it gives me a measurement for nearest point in B for every point in Polygon A (resulting in over 9000 entries in the attribute table). I just need to know the distance between the closest Polygon A point and Polygon B point.

If it helps, I'm trying to find the distance between 30 Scheduled Monuments (Polygon A) and the Site Boundary (Polygon B).

I'm reasonably new to QGIS.

• Are the polygons in the same layer or two different layers?
– Bera
Commented May 15 at 18:31