Re: [Gpsbabel-code] TCX-File Format
Brought to you by:
robertl
From: Robert L. <rob...@gp...> - 2010-05-28 16:51:21
|
added mailing list for design discussion, future code review. On Fri, May 28, 2010 at 5:54 AM, <sve...@us...> wrote: > > Message body follows: > > Hello Robertl, > > i have a problem with the Garmin Training Center (gtrnctr) format of > gpsbabel. > > TCX-Files for the Garmin Training Center must contain the tag "<Time>" > inside each "<Trackpoint>" tag. > Otherwise the program can't open the file. (Please take a look at the > screenshot of the last email.) > Gpsbabel writes the time tag only, if the wpt->creation_time is set. > But if the source file doesn't contains this timestamp, > the exported file isn't readable by the Garmin Training Center. > My idea is to write down a dummy time to the TCX file, > if the source file doesn't contains this value. > So you have a destination format that requires time and a source that doesn't provide it? You're right; we don't write it if we dont' have it. Can all the times be the same or do you have to fake them up to be ascending? Knowing what training center focuses on, it does seem that activities without time wouldn't be nearly as useful. Rather than special-casing this in the TCX writer, perhaps we should create a 'faketime' option to the track filter http://www.gpsbabel.org/htmldoc-development/filter_track.html that accepts a starting date and an interval for each successive trackpoints. gpsbabel -i xxx -f xxx -x track,faketime="2010-02-28-13:30,2s" -o gtrnctr -F yyy would "fix" missing times to start at that time (GMT? Local?) and each one would be two seconds later than the previous one. > If you agree, please add me to the developers of the source forge > project and > i'm going to add this functionality. > Send patches to this list, please. RJL |