My goal is to add my very old (about twenty years) ROAD biketours to a current exercise tracking web service like sports-tracker, runtastic, strava etc. where all my recent activities are stored too (from the past couple of years). The idea is to draw a tracklog e.g. with http://bikeroutetoaster.com/ which looks pretty good. As the tours were made on roads and I have the city names along the way I can draw the tracks. And here comes the puzzle I cannot solve: I would like to add the time data to the tracklog files for about 10 points in the log and I want a tool which calculates the timestamp for all the other points. For your better understanding here is one example of the trips I captured that time with my Cateye CC-8000 which has 10 memories to store trip segments. I have all the old data in MS Excel. I have the following data for each of the tours like this: Segment name, time from the start of the tour, distance: Esztergom-tour 1997.06.09 For longer trips I also have the start and end time (CET) and the local time for each of the segments shown above. So I would like to have a GPX file asked 19 Jun '14, 21:25 F Ace |
I did something like you want to achieve but neither remember the details nor would they help you much (I assume) since you use Windows and aren't used to bash tools.
If you want you can strip some timestamps from the file again – of course with gpsbabel. :) My example you can find here – can you find out the part which is artificial? hth answered 19 Jun '14, 22:43 malenki |
I'm not sure what you want to do with these GPX files but I do know that GPSBabel can add timestamps to GPX data. I had need for this when I retrieved some GPX files that I had uploaded to Google Earth, which stripped the time data from them. In order to use the data on OSM I had to resort to a GPSBabel function called faketime which puts a user specified date and time on each point in your tracklog. I won't do anything as complex as what you want but it's a start. From the command line, invoke GPSBabel like this: gpsbabel -i gpx -f c:in.gpx -x track,faketime=f20140605130705+5 -o gpx -F c:\out.gpx faketime format: YYYYMMDDHHMMSS+SS (no. of seconds to increment each point) This command takes a track and beginning with the first point, adds the date 2014-06-05 and a time, in this example, 07:05 am. Each subsequent point gets incremented by 5 seconds. Read this for more. Dave answered 20 Jun '14, 03:33 AlaskaDave |
sorry, but this is not at all OSM-related, is it?