Implementation of the Douglas-Peucker algorithm for line thinning http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm

simplify_rec(x, y, tol = 0.01)

Arguments

x

vector of longitudes

y

vector of latitudes

tol

tolerance