From OpenStreetMap Wiki
Jump to: navigation, search

A new version is in development that will support bz2 files,produce more valid gpx files and be more efficient

traceosm is a tiny bash script which converts for a specific user the .osm data into .gpx files.These files can be viewed in Google Earth or in KDE4's Marble.

You can get a quick overview where you or anybody else altered or created nodes around the world. This can be quite useful to find out whether a bot like xybot has transformed nodes in your area.

Only for Linux at the moment! - Perhaps OSX but this needs testing, various unix and bsds should work too.

You only need bash, sed, awk, cat and echo so a cygwin installation should work.

How does it work

First you need the database output from OSM, where you think the user altered or created some nodes. If you are from Europe, i suggest to use this server, especially if you are from England or Germany.

Here you'll find osm-dumps for every single european country.

This is for GB:

And this for Germany:

This is Global:

But keep in mind, the bigger the input file, the longer you have to wait for your output file (for example, to get the data of a user in Germany with 40.000 nodes takes aprox. 10 minutes)

Unzip these data:

   bzip2 -d *yourfile*

You have now a file, for example germany.osm. This file has a syntax like this line:

   <node id="127303" timestamp="2006-08-28T21:50:00Z" user="Namegoeshere" lat="48.201355" lon="11.3100061"/>

What we do is using the script "traceosm" to convert this line into gpx valid data to view this afterwards in Google Earth, JOSM, Marble or whatever. The program is very simple and easy to use, but nevertheless I'll give you a short introduction.

First, open a shell, xterm for example. Then download the script to the desired destination, make sure the osm files are in the same folder:

    cd destination
    tar xfz traceosm.tar.gz
    chmod +x

Run the script


And now follow the messages on the screen.

When the script finshed its work, you'll get two files: traceosm.out with a sorted (by date, old => new) csv file and if you answered "yes" the gpx file.

Attention when using Google Earth! Make sure you selected "Never" under "View" ==> "Show Time"


The output can be graphically displayed with Google Earth or Marble


Downloadlink of traceosm

Mirror for Europe

Mirror for the whole planet