Skip to content

Instantly share code, notes, and snippets.

View jamesgpearce's full-sized avatar
Always hacking somewhere

James Pearce jamesgpearce

Always hacking somewhere
View GitHub Profile
@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) :
@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) :