Commit d9061285 authored by Sven Greiner's avatar Sven Greiner
Browse files

Some more fixes

parent 9dbaa0f1
...@@ -120,9 +120,9 @@ def writeToShape(track, simplified, shapename): ...@@ -120,9 +120,9 @@ def writeToShape(track, simplified, shapename):
w.field('ID', 'N', '16') w.field('ID', 'N', '16')
w.field('StartTime', 'N', '16') w.field('StartTime', 'N', '16')
w.field('StartDist', 'N', '16') w.field('StartDist', 'N', '16')
w.field('Speed', 'N', '16') w.field('Speed', 'N', '16', 3)
w.field('Slope', 'N', '32') w.field('Slope', 'N', '32', 3)
w.field('VerticalSpeed', 'N', '32') w.field('VertSpeed', 'N', '32', 3)
k = 0 k = 0
for i in xrange(len(simplified) - 1): for i in xrange(len(simplified) - 1):
...@@ -144,7 +144,7 @@ def writeToShape(track, simplified, shapename): ...@@ -144,7 +144,7 @@ def writeToShape(track, simplified, shapename):
StartDist=startPoint.distance, StartDist=startPoint.distance,
Speed=endPoint.speed, Speed=endPoint.speed,
Slope=endPoint.slope, Slope=endPoint.slope,
VerticalSpeed=endPoint.vspeed VertSpeed=endPoint.vspeed
) )
w.save(shapename) w.save(shapename)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment