Register | Login
Attackpoint - performance and training tools for orienteering athletes

Discussion: Need to merge 2 GPX files

in: Orienteering; Gear & Toys

May 6, 2020 12:42 AM # 
evancuster:
I stopped my Garmin 35 watch in the middle of a training course so I could enable the split button (new watch, first time trying to use the split function). As a result, my tract is in 2 files. How can I merge those 2 tracks into one GPX file? I use Apple Mac.
Advertisement  
May 6, 2020 1:07 AM # 
cmorse:
You can easily merge them in a text editor. open the first file, scroll to bottom, delete everything after the last /trkpt tag (probably just three lines to remove - /trkseg, /trk, /gpx - including the angle brackets )

Then append the second file - but removing everything before the first trkpt tag - on the Garmin 235 its 4 lines.

Save file. Basically gives you one continuous series of trackpoints in a single track segment.
May 6, 2020 11:43 AM # 
Windcrest:
If the files are just GPX files I would do exactly as cmorse suggested. However if they are (or could be exported as) tcx or fit , hence more details, or if you are are not comfortable with editing text files like these, check out the set of tools at
https://gotoes.org/strava/index.php
The first tool will merge two or more gpx, tcx or fit files together.

Another site that does this as well (for GPX only) http://joewein.net/bike/gpxmerge/
May 6, 2020 2:40 PM # 
Terje Mathisen:
I'm guessing GPS Babel (https://www.gpsbabel.org/) would be the canonical answer to anything track-related.

Please login to add a message.