Talk:Convert GPS tracks

From OpenStreetMap Wiki
(Redirected from Talk:Making GPX Files)
Jump to: navigation, search

With gpsbabel 1.2.7 on Windows 2000, using "com1" as the input device reports "input file not found"

More Samples please

Having started to write a conversion tool for Motorola A780 (running commercial CoPilot software), I'd need some further sample formats. I need some inspiration to what format I should convert to be most compliant.

So far I learned that CSV could be a nice option. I have data in my source like: date, time, lat, long (each: start/end so I could do delta values), plus some mysterious cols:

StDate     StTime   EndDate    EndTime       StLat     EndLat      StLong     EndLong Fix Total     Total #OfObs
(UTC)      (UTC)    (UTC)      (UTC)                                                      Miles     Hours
----------------------------------------------------------------------------------------------------------------
28/02/2008 13:40:55 08/02/2008 13:41:34  52.049173  52.050363    8.500232    8.500274 1 6742814529801702259125897743605360605700653206675970781668521816459159247100427232874477132762782798878592453609100253732555929738950758065517410162620503699080360230912.00     0.000 768152
28/02/2008 13:41:39 08/02/2008 13:42:08  52.050632  52.051640    8.499953    8.501476 1 2689527508270565645285562507336234236519659169177630432644550929773167355776265721587068591925498656338264312862222681995758541974123908694016.00     0.000 768152
28/02/2008 13:42:15 08/02/2008 13:42:29  52.051866  52.052209    8.502292    8.503364 1 125445263770344205498976362215473952162914703074237170259648631872633233322342821140208025600.00     0.000 1091311596
08/02/2008 13:42:29 08/02/2008 13:42:31  52.052209  52.052187    8.503364    8.503686 0    0.00     0.000 1076626616

I can split any line (representing a track segment) into two way points, separated by commas or tabs (as prefered). What's your advise? @SIG@

Page reordering

How about restructuring this page so it covers things more generally, and a selection of the tools available. Maybe the large GPSBabel section could be moved out into a "Making tracks with GPSBabel" page? Eric2 21:13, 12 February 2009 (UTC)

Convert tsf files into gpx files

I am not quite sure but I think GPSBabel is not able to convert tsf files (Trackspace fileformat) into gpx files (which are needed for osm). Therefore I have written this small python script to do the work:

#!/usr/bin/env python

################################
# tsf2gpx - Converter
#
# Version: 1.0
# Date: 01.04.2009
# Author: mikado11
# Licence: GPL 2.0
################################

import sys

from time import time
from time import strftime
from datetime import datetime

header = '<?xml version="1.0" encoding="UTF-8"?>\n\
<gpx	version="1.0"\n\
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n\
	xmlns="http://www.topografix.com/GPX/1/0"\n\
	xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">\n\
<trk>\n\
<trkseg>'

footer = '</trkseg>\n\
</trk>\n\
</gpx>'

try:
	fin = open(sys.argv[1], 'r')
	foutname = fin.name[:-3]+'gpx'
	fout = open(foutname,'w')
	
	fout.write(header)
	fout.write("\n")
	fin.readline();
	fin.readline();
	for line in fin:
		if line[0]=='#':
			continue
		else:
			data = line.split('|');
			t = datetime.fromtimestamp(int(data[6]))
			gpspoint = '<trkpt lat="'+data[1]+'" lon="'+data[0]+'">\n\
	<ele>'+data[3]+'</ele>\n\
	<speed>'+data[2]+'</speed>\n\
	<fix>3d</fix>\n\
	<hdop>'+data[5]+'</hdop>\n\
	<time>'+t.strftime("%Y-%m-%dT%H:%M:%SZ")+'</time>\n\
	</trkpt>'
			fout.write(gpspoint)
	
	fout.write("\n")
	fout.write(footer)
	fin.close()
	fout.close()
except IOError:
    print 'Error: Cannot open "'+sys.argv[1]+'"'
except:
    print "Unexpected error:", sys.exc_info()[0]
    raise

Maybe I'am wrong concering the features of GPSBabel. Just tell me!

--Mikado11 16:53, 1 April 2009 (UTC)

More slash and burn needed

http://yacf.co.uk/forum/index.php?topic=12998.msg348158#msg348158

She speaks the truth. --Richard 13:43, 29 May 2009 (UTC)

Track'n Trail app stopped working?

Track'n Trail was brilliant, and I purchased it having read great reviews here. But now it has stopped being able to email or upload files. I’ve tried emailing the developers, but no answer. It also is no longer available on the UK iTunes App store. Any idea what’s going on? OSM is a great idea btw. Thanks, Tom --Tomhannen 08:11, 2 June 2009 (UTC)

Garmin BaseCamp

Garmin BaseCamp also exports to GPX and is free software. Is it not mentioned due to the proprietary nature of the software or is this software newer than this article?

Multiple tracks in one GPX file --> mess

Why is the parsing program not able to split multiple tracks? It can not be difficult to see that the distance between point 2746 and 2747 is much bigger than the distance between 2745 and 2746 or between 2747 and 2748. In this case, the track should be splitted.

Obviously, many users don't follow the advice. So the software has to correct it.

The reason is: there are places which are crossed by so many useless long-distance lines that I am hardly able to find my track which I uploaded and want to edit. IMHO, the whole GPX data base should be cleaned up this way, otherwise it is or will be too messy to work with. --Plenz 17:53, 1 May 2011 (BST)