1
0
Fork 0

No need to walk through all points

This commit is contained in:
Tobias Leupold 2018-07-23 09:24:56 +02:00
parent 0355fd54ce
commit 95e0b1a68c
1 changed files with 1 additions and 5 deletions

View File

@ -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):