Skip to content

Instantly share code, notes, and snippets.

@tobyhoward
tobyhoward / gpxsmooth.py
Last active July 22, 2022 20:02 — forked from jdeblese/gpxsmooth.py
Path smoothing script for GPX files
import math
import numpy
import sys, os
from lxml import etree
Re = 6371000 # Earth radius in meters
# Extract the latitute and longitude as a tuple in radians from a <trkpt> element
def extract(trkpt) :