Decimate polyline data with the Douglas-Peucker algorithm