Display of GPS-data on map.

Asked by pe1gdk

Hello all,

This is not a question as much as it is a tip. The next script massages the output file of the command
to a gpx-file. The output of the script can be fed into: http://www.gpsvisualizer.com/ to display.
-------------
$ cat igot2gpx
#
# http://www.gpsvisualizer.com
#
echo "<gpx><trk><desc>Color:004000ff</desc><trkseg>"
cat $1 | sed -e 's/^Record.*$//' \
                -e 's/^ Date.*$//' \
                -e 's/^ Latitude /<trkpt lat="/' \
                -e 's/^ Longitude /" lon="/' \
                -e 's/^ Elevation .* m$/"><ele>&/' \
                -e 's/^ Speed /<\/ele><speed>/' \
                -e 's/ m$//' \
                -e 's/ km\/s$/<\/speed><\/trkpt>/' \
                -e 's/^ Course.*$//' \
                -e 's/^ EHPE.*$//' \
                -e 's/^ Satellites.*$//' \
                -e 's/^ Flags.*$//' \
                -e 's/^ Timeout.*$//' \
                -e 's/^ MSVs_QCN.*$//' \
                -e 's/^ Weight.*$//' \
                -e 's/^ Sleep.*$//'
echo "</trkseg></trk></gpx>"
-------------
Then do: "chmod 755 igot2gpx" and voila !
------
73's PE1GDK.

Question information

Language:
English Edit question
Status:
Solved
For:
igotu2gpx Edit question
Assignee:
No assignee Edit question
Solved by:
pe1gdk
Solved:
Last query:
Last reply:
Revision history for this message
pe1gdk (lette) said :
#1

-

Revision history for this message
Michael Hofmann (mh21) said :
#2

In the current devel version, marble of kde fame together with openstreetmap is used to give a first impression of what got downloaded.