1
0
Fork 0
mirror of synced 2023-12-13 21:10:09 +01:00

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

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