A small Python script to merge the tracks from multiple GPX files into a single GPX and single GeoPackage file.
To check out and run the project, do the following:
$ git clone [email protected]:lostmapper/gpx-merge.git
$ cd gpx-merge
$ python -m venv .venv
$ source .venv/bin/activate
$ python -m pip install -r requirements.txt
$ ./gpx-merge.py
- Place your GPX files in the
input
folder. - Run the script.
- Find your combined tracks in
output/merged.gpkg
andoutput/merged.gpx
.
If you're looking to download all your GPX files from Strava at once:
- Head to https://www.strava.com/athlete/delete_your_account
- Click on
Request Your Archive
- Don't delete your account!
- Wait for an email from Strava
- Unzip the archive
- Copy the GPX files from the archive into the
input
directory of this project. - Follow the instructions in Usage