2

I have an assignment were I need to calculate the mean distance between coordinates. Effectively I am trying to find out what is the average distance in meters between buildings in a defined town boundary.

Does QGIS have a tool to do this? I'm using WGS 84 as the co-ordinates system for the both the project and the layer.

Building Co-ordinates in a town

2
  • 3
    Is it mean distance between all coordinates (i.e. you calculate distances from building 1 to all other buildings, repeat on building 2, 3, etc, and get global average), or do you want the mean distance between closely spaced buildings, or something else entirely? You might want to define your question more clearly :)
    – weiji14
    Commented May 23, 2017 at 3:22
  • Hi Weiji, yes I want to find the distance in meters between closely spaced buildings i.e. the nearest neighbouring building.
    – David
    Commented May 23, 2017 at 7:07

1 Answer 1

5

To find statistics on the nearest neighbors, you would go to Vector > Analysis tools > Nearest Neighbor Analysis. Upon completion, it displays a window that includes the mean distance. Make sure you are using a projected dataset to obtain distances in meters, not in degrees.

1
  • Thanks JGH, I saved the project layer and the points layer as Irish Grid 95 and it worked! The results were in meters.
    – David
    Commented May 26, 2017 at 10:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.