Page 1 of 3

Merging GPX files

Posted: 19 Jan 2019, 11:05am
by climo
Can't for the life of me find a simple way to merge (join) 2 or more GPX files then export them to Osmand or other similar program. Online programs don't work or are stupidly complex. The alternative is to edit files in a text editor. Tried Garmin Basecamp and yes it does do it but importing into Komoot produces a real mess of conflicting routes with loops and spurs off which didn't exist in the original. Cycle.travel won't import the file.
The only Mac program that claims to do this is Adze and that is so slow that I've given up on it.
Surely there's a simpler way.

Re: Merging GPX files

Posted: 19 Jan 2019, 2:59pm
by PH
I use gotoes
https://gotoes.org/strava/Combine_GPX_TCX_FIT_Files.php

For Audax, I always record and save in sections and join afterwards to upload to Strava, it's worked with Garmin Etrex, Touring and 200, plus with a simple logger. Although it's promoted as a utility for Strava,you get a GPX file which you can do whatever you want with. I've never had a problem, but to avoid any possible issues I've copied them off the device to the PC first so I still have the original files.

Re: Merging GPX files

Posted: 19 Jan 2019, 3:20pm
by climo
PH wrote:I use gotoes
https://gotoes.org/strava/Combine_GPX_TCX_FIT_Files.php

For Audax, I always record and save in sections and join afterwards to upload to Strava, it's worked with Garmin Etrex, Touring and 200, plus with a simple logger. Although it's promoted as a utility for Strava,you get a GPX file which you can do whatever you want with. I've never had a problem, but to avoid any possible issues I've copied them off the device to the PC first so I still have the original files.

Tried this and the resulting track wouldn't open in cycle.travel, Basecamp ( said it wasn't a valid file) or Komoot. It sounds like you're talking about tracks you've recorded. I'm talking about routes I've planned or download from other sources.

Re: Merging GPX files

Posted: 19 Jan 2019, 3:28pm
by tykeboy2003
I use MapSphere GPX Track Editor which allows you to open any number of tracks which can then be selected and merged. Download it here;-https://download.cnet.com/GPS-Track-Editor/3000-20422_4-75720240.html

Just noticed that you use MAC, don't know if they support it....

Re: Merging GPX files

Posted: 19 Jan 2019, 3:44pm
by climo
tykeboy2003 wrote:I use MapSphere GPX Track Editor which allows you to open any number of tracks which can then be selected and merged. Download it here;-https://download.cnet.com/GPS-Track-Editor/3000-20422_4-75720240.html

Just noticed that you use MAC, don't know if they support it....

Windows only I'm afraid. Apart from that it looks like it would do the job.

Re: Merging GPX files

Posted: 19 Jan 2019, 4:25pm
by sjs
Gpsbabel would work. Very flexible but might be considered a bit fiddly.

Re: Merging GPX files

Posted: 19 Jan 2019, 5:16pm
by climo
Was searching under "merge GPX files", searching for "edit GPS files" brought up GPS Editor on the Apple Itunes store which claims it'll do this but then so did Adze. Worth a punt at £5 but I'm not holding my breath.

Re: Merging GPX files

Posted: 19 Jan 2019, 5:18pm
by climo
sjs wrote:Gpsbabel would work. Very flexible but might be considered a bit fiddly.

Tried that and yes it's very fiddly. I'm hoping for a no brainer solution.

Re: Merging GPX files

Posted: 19 Jan 2019, 11:39pm
by Tinnishill
GPSPrune is an interface which uses GPSBabel in the background

https://wiki.openstreetmap.org/wiki/GpsPrune

https://activityworkshop.net/software/gpsprune/

Re: Merging GPX files

Posted: 20 Jan 2019, 12:56pm
by tempsperdu
I use Garmin BaseCamp but its a knife and fork edit.
You have to cut and splice by hand and the menus are not intuitive.
Also if the files were generated from ride data you lose that as well.
Other than that it can be done.

Re: Merging GPX files

Posted: 20 Jan 2019, 7:38pm
by geomannie
If you want to get techy, try QGIS, a very powerful, open source GIS program. Hours of fun, but you really have to want to use it.

https://www.qgis.org/en/site/

Re: Merging GPX files

Posted: 21 Jan 2019, 10:24am
by climo
geomannie wrote:If you want to get techy, try QGIS, a very powerful, open source GIS program. Hours of fun, but you really have to want to use it.

https://www.qgis.org/en/site/


eek! or should I say geek!

Re: Merging GPX files

Posted: 21 Jan 2019, 11:39am
by geomannie
climo wrote:
geomannie wrote:If you want to get techy, try QGIS, a very powerful, open source GIS program. Hours of fun, but you really have to want to use it.

https://www.qgis.org/en/site/


eek! or should I say geek!

Guilty as charged :D

Re: Merging GPX files

Posted: 21 Jan 2019, 11:48am
by climo
Perhaps you could open a business joining gps routes as there's a dearth of simple software to use.
Often I find that on a trip I get to the end of the plotted route without knowing it and miss a turning. Once went 8 miles further down a French cyclepath when I should have turned off. No alternative but to go back - I wasn't popular with swimbo. :(

Re: Merging GPX files

Posted: 21 Jan 2019, 6:26pm
by Sweep
Can I ask why you need to get into the complexities of merging two gpx's OP?

I quite often on longer rides switch to a different pre-prepared gpx.

If I'm concerned that I might ride past the point on the first where I want to switch to a new route I can always make a copy and then just chop the end off. The garmin will then tell me when I am "arriving".

Do be careful if doing any gpx tinkering that you syntax check it.