[OSM-talk] So how *do* you get GPS waypoints into OSM?

martyn info at dynoyo.plus.com
Mon Nov 22 14:32:21 GMT 2010


My GPS unit produces separate POI / waypoint files in addition to 
trackpoint files. Combining the two produces a file that can be 
visualised and traced in Potlatch:

Waypoint files may not be timestamped, so using a text editor, add 
timestamps to each waypoint in the format

<time>2010-10-06T11:15:27Z</time>

Then cut the block of waypoints and paste at the end the list of 
trkpoints.  You might want to edit the trkpoints to just a few in the 
vicinity of the waypoints.  The resulting file:

------------------------------------------------------------------------

<?xml version="1.0"?>
<gpx> version="1.1" creator="" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns="http://www.topografix.com/GPX/1/0" 
xsi:schemaLocation="http://www.topografix.com/GPX/1/0 
http://www.topografix.com/GPX/1/0/gpx.xsd">
<trk>
<trkseg>
<trkpt lat="51.838455" 
lon="-1.6299166"><ele>0</ele><time>2010-10-06T11:15:20Z</time><cmt>0.0 
kmh</cmt></trkpt>
<trkpt lat="51.838456" 
lon="-1.6299165"><ele>0</ele><time>2010-10-06T11:15:21Z</time><cmt>0.0 
kmh</cmt></trkpt>
<trkpt lat="51.838456" 
lon="-1.6299163"><ele>0</ele><time>2010-10-06T11:15:22Z</time><cmt>0.0 
kmh</cmt></trkpt>
<trkpt lat="51.838456" 
lon="-1.6299162"><ele>0</ele><time>2010-10-06T11:15:23Z</time><cmt>0.0 
kmh</cmt></trkpt>
</trkseg>
</trk>
<wpt lat="51.838451" lon="-1.63011829" 
 ><time>2010-10-06T11:15:27Z</time><ele>0</ele><name>POI 1</name></wpt>
<wpt lat="51.846776" 
lon="-1.62686897"><time>2009-01-05T12:55:17Z</time><ele>0</ele><name>POI 
2</name></wpt>
<wpt lat="51.842417" lon="-1.62943171" 
 ><time>2009-01-05T12:55:18Z</time><ele>0</ele><name>POI 3</name></wpt>
<wpt lat="51.846719" lon="-1.62930629" 
 ><time>2009-01-05T12:55:19Z</time><ele>0</ele><name>POI 4</name></wpt>
</gpx>

----------------------------------------------------------------------

Upload the file with visibility as "Private", edit with save, and the 
wpts show up as orange spots.  The name is revealed on mouse over.
Delete file when finished.





More information about the talk mailing list