Changeset 120
- Timestamp:
- 11/01/07 20:52:28 (1 year ago)
- Files:
-
- pytrainer/trunk/pytrainer/extensions/googlemaps.py (modified) (1 diff)
- pytrainer/trunk/pytrainer/lib/gpx.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pytrainer/trunk/pytrainer/extensions/googlemaps.py
r119 r120 43 43 cachefile = extensiondir+"/%d.gpx" %id_record 44 44 if not os.path.isfile(cachefile): 45 trackdistance = "1 00"45 trackdistance = "1" 46 46 gpxfile = self.conf.getValue("gpxdir")+"/%s.gpx" %id_record 47 os.system("gpsbabel -t -i gpx -f '%s' -x position,distance=%sm -o gpx -F %s" %(gpxfile,trackdistance,cachefile)) 47 #os.system("gpsbabel -t -i gpx -f '%s' -x position,distance=%sm -o gpx -F %s" %(gpxfile,trackdistance,cachefile)) 48 os.system("gpsbabel -t -i gpx -f '%s' -o gpx -F %s" %(gpxfile,cachefile)) 48 49 print "gpsbabel -t -i gpx -f '%s' -x position,distance=%sm -o gpx -F %s" %(gpxfile,trackdistance,cachefile) 49 50 pytrainer/trunk/pytrainer/lib/gpx.py
r119 r120 65 65 stylefile = self.data_path+"pytrainer.style" 66 66 tmpfile = self.conf.getValue("tmpdir")+"/gps.txt" 67 os.system("gpsbabel -t -i gpx -f '%s' -x position,distance=100m -o xcsv,style=%s -F %s" %(self.filename, stylefile,tmpfile)) 67 #os.system("gpsbabel -t -i gpx -f '%s' -x position,distance=10m -o xcsv,style=%s -F %s" %(self.filename, stylefile,tmpfile)) 68 os.system("gpsbabel -t -i gpx -f '%s' -o xcsv,style=%s -F %s" %(self.filename, stylefile,tmpfile)) 68 69 return tmpfile 69 70
