Skip to content

Instantly share code, notes, and snippets.

@jdeblese
jdeblese / gpxsmooth.py
Created September 11, 2014 20:52
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) :