Finding distance between polygons in same layer

clusteringdistanceqgis

I would like to know the distance between polygons in a layer.

The goal is to know which houses are within 5 meters from each other in order to cluster them.

I tried adding a buffer and playing around it but I didn't manage to get what I want.

enter image description here

Best Answer

The solution is quiet straightforward : Using the NNjoin plugin i made a self join of the house layer using the distance criterion enter image description here

the result layer gives the distance between the houses! enter image description here

a simple query gives all the houses within a 5 meter distance "distance" <= 5

An alternative solution can be to use the v.cluster from the grass toolbox !

Related Question