igotu2gpx team mailing list archive
-
igotu2gpx team
-
Mailing list archive
-
Message #00131
[Question #73936]: Display of GPS-data on map.
New question #73936 on igotu2gpx:
https://answers.launchpad.net/igotu2gpx/+question/73936
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.
--
You received this question notification because you are a member of
MobileAction i-gotU USB GPS travel logger Mac/Linux support developers,
which is an answer contact for igotu2gpx.