Changeset 120

Show
Ignore:
Timestamp:
11/01/07 20:52:28 (1 year ago)
Author:
vud1
Message:

"gpsbabel options improved"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pytrainer/trunk/pytrainer/extensions/googlemaps.py

    r119 r120  
    4343                cachefile = extensiondir+"/%d.gpx" %id_record 
    4444                if not os.path.isfile(cachefile): 
    45                         trackdistance = "100
     45                        trackdistance = "1
    4646                        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)) 
    4849                        print "gpsbabel -t -i gpx -f '%s' -x position,distance=%sm -o gpx -F %s" %(gpxfile,trackdistance,cachefile) 
    4950 
  • pytrainer/trunk/pytrainer/lib/gpx.py

    r119 r120  
    6565                stylefile = self.data_path+"pytrainer.style" 
    6666                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)) 
    6869                return tmpfile 
    6970