Optimize GPX track by fixing altitude (SRTM), deleting bitten segments and reducing number of points using Ramer–Douglas–Peucker algorithm.
pip install -r requirements.txt
python optimize-gpx.py myfile.gpx
- Fix elevations using data from Shuttle Radar Topography Mission
- Split segments into two parts if the distance between two points exceeds the threshold (500m)
- Reduce number of points using Ramer–Douglas–Peucker algorithm
Delete segments with distance of 500m or more between points