0

This question already has an answer here:

I would like to calculate the distances between a list of coordinates (classic GPS coord.). From coordinate A to B from B to C from C to D and so on, and so forth. Is there any program, or website, or any QGIS plugin i could use? Sadly im not familiar with R. Any suggestions? Thanks!

marked as duplicate by whuber Mar 12 '14 at 20:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

What about old good Pythagoras? C#/Java solution is as simple as :

double dist = Math.Sqrt((A.X - B.X)*(A.X - B.X) + (A.Y - B.Y)*(A.Y - B.Y));

for any coordinate system^.

  • There must ne some plugins here: plugins.qgis.org/plugins I am pretty sure they have what you need. Also you can write formula once in Excel/Libre Office Calc and use it. – shika-kun Mar 12 '14 at 15:40
  • 1
    Pythagoras won't work for GPS coordinates (Assuming WGS84 lat/longs) because lat/long is an angular measurement. You'll need to use some trig to find the great-circle distance instead. The Haversine formula is quick and easy if you don't need very fine precision. – Mintx Mar 12 '14 at 18:50
  • dunno, I used Pythagoras in one program 3 years ago, and noone noticed yet :) – shika-kun Mar 13 '14 at 7:41

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