No need to walk through all points
This commit is contained in:
parent
0355fd54ce
commit
95e0b1a68c
6
gpx2svg
6
gpx2svg
|
@ -187,12 +187,8 @@ def combineSegments(gpsData):
|
||||||
def chronologyJoinSegments(gpsData):
|
def chronologyJoinSegments(gpsData):
|
||||||
"""Join all segments to a big one in the order defined by the GPX file."""
|
"""Join all segments to a big one in the order defined by the GPX file."""
|
||||||
joinedSegment = []
|
joinedSegment = []
|
||||||
|
|
||||||
# Walk through the GPS data
|
|
||||||
for segment in gpsData:
|
for segment in gpsData:
|
||||||
for coord in segment:
|
joinedSegment += segment
|
||||||
joinedSegment.append(coord)
|
|
||||||
|
|
||||||
return [joinedSegment]
|
return [joinedSegment]
|
||||||
|
|
||||||
def scaleCoords(coord, height, scale):
|
def scaleCoords(coord, height, scale):
|
||||||
|
|
Loading…
Reference in New Issue