Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 894 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 894 Bytes

Optimize GPX file

Optimize GPX track by fixing altitude (SRTM), deleting bitten segments and reducing number of points using Ramer–Douglas–Peucker algorithm.

Install

pip install -r requirements.txt

Run

python optimize-gpx.py myfile.gpx

Overview

  1. Fix elevations using data from Shuttle Radar Topography Mission
  2. Split segments into two parts if the distance between two points exceeds the threshold (500m)
  3. Reduce number of points using Ramer–Douglas–Peucker algorithm

Examples

Fix elevations: 65043524_385586968743450_1600004295627898880_n

Delete segments with distance of 500m or more between points 65027121_471196397017624_7341208610585706496_n