Use an enumerator for gpx.points, and process the the points in batches