Skip to content

Instantly share code, notes, and snippets.

View edisonqkj's full-sized avatar

Edison Qian edisonqkj

  • China
View GitHub Profile
@edisonqkj
edisonqkj / cleangpx.py
Created June 5, 2016 01:39 — forked from dal/cleangpx.py
Simple python script to remove unwanted discontinuities in gpx track files.
#!/usr/bin/python
'''
Split gpx tracks at discontinuities, that is, pairs of points in a track that
are further than a given distance threshold.
'''
import collections
from lxml import etree
import math
import optparse
import re