Skip to content

Andrii-D/optimize-gpx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages