From 95e0b1a68cde558e20d30763e2ce35877abcc5d6 Mon Sep 17 00:00:00 2001 From: Tobias Leupold Date: Mon, 23 Jul 2018 09:24:56 +0200 Subject: [PATCH] No need to walk through all points --- gpx2svg | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gpx2svg b/gpx2svg index b17ef18..58da558 100755 --- a/gpx2svg +++ b/gpx2svg @@ -187,12 +187,8 @@ def combineSegments(gpsData): def chronologyJoinSegments(gpsData): """Join all segments to a big one in the order defined by the GPX file.""" joinedSegment = [] - - # Walk through the GPS data for segment in gpsData: - for coord in segment: - joinedSegment.append(coord) - + joinedSegment += segment return [joinedSegment] def scaleCoords(coord, height, scale):