Mapping Hacks

by Schuyler Erle, Rich Gibson and Jo Walsh

« connecting neighbourhoods Google Talk Maps »

How far is it…

March 13th, 2006 by Rich

Someone sent me a GPX file of track logs, and I discovered a ‘need’ to know how far each point was from the one before…so I wrote a little bit of code that you are free to use.

gpx_distance.pl uses

GPS Babel to convert a GPX file to CSV, then uses a dodgy bit of perl to calculate the distance between succesive series of points…save it to your system, then from the command line:

./gpx_distance.pl

Posted in Uncategorized |

You can follow any responses to this entry through the RSS 2.0 feed. Trackback from your own site.


One Response to “How far is it…”

  1. seth Says:
    April 14th, 2006 at 4:58 pm

    I have some python code that deals with GPX tracklogs and does various things, including distance computation. There’s more than one way to compute distance, and some methods are more prone to roundoff error over small distances, which is relevant for tracklogs.

    My code is at http://www.aigeek.com/geophoto/
    and more about distance formulas are in the Wikipedia: http://en.wikipedia.org/wiki/Great-circle_distance

Leave a Reply

You must be logged in to post a comment.


Entries (RSS) and Comments (RSS).