How to combine multiple GPX files and delete duplicates

Hello all - I did a search here and really didnt find an exact and easy solution for what I am trying to do. Over the years, I have collected multiple GPX files from my various devices. What I am trying to do is combine all of these into one master file - each GPX has some of the same saved places in it, so once I combine everything, I am looking for a way to quickly and easily identify the duplicates and delete them. I have been using GPX editor, and it somewhat works, but I have not found a way to delete multiple saved places at once. I have a library of several hundred saved places and deleting duplicates one by one is a little tedious. I also tried the online GPX studio, but once I combine the files, I have not figured out a way to sort them so I can identify the duplicates. I have also tried using BaseCamp in the past, but it seemed to be a little quirky also.

Does anyone have any advice on a quick and easy way to do this?
PS: I am trying to do this on my desktop computer.

Probably good to mention on which operation system you are.

How “duplicate” are they?

If they are 100% duplicate you can just compare the files, under the Linux command line there is the fdupes command for that. If you are on Windows, just search for a tool to find duplicate files.

If they are not 100% the same, please specify how they differ.

For combining .gpx files I would use gpsbabel:

Im on Windows 11. The duplicates are within the GPX files themselves.. as an Example, Place “X” appears in all the files, so when I merge them together, I have multiple entries for Place “X”. As a futher example, lets say one file has 200 saved places, and the other 250. 175 or so are duplicates - I am trying to root out the duplicates, delete them, and consolidate into one master GPX file to use on all my devices. Im fiddling with Base Camp now, but will give your suggestion a try.

Only you have duplicate waypoints in different .gpx files, or … are there also duplicate tracks?

Also for duplicate waypoints, gpsbabel is the answer:

gpsbabel has also a GUI if you prefer that.

.. I have different waypoints only. I very rarely have used tracks. I had some luck with Base Camp, but will have a look at GPSBabel also. Yeap, prefer a GUI.. :slight_smile: :)

Update and for future reference of others. I was able to accomplish what I was trying to do through Base Camp by creating a folder under “my collection” and using the “import into xxx” function. Evidently, Base Camp is smart enough to recognize the duplicates I had in my 10-15 GPX files.. so, I was able to consolidate all of these into 1 with the duplicate saved places automatically ignored by Base Camp. Thanks for the responses emvee! .. Now.. to figure out how to load OSM maps into base camp.. :)

1 Like

Du kannst ja mal mein Tool ausprobieren.
GrĂĽĂźe