Browse Source

Anchor analysis balloons correctly.

debian-sid
Tom Payne 14 years ago
parent
commit
2b2bcd83a7
  1. 1
      TODO
  2. 9
      igc2kmz/__init__.py

1
TODO

@ -1,7 +1,6 @@
HIGH
Check indexes in thermal folder
Check indexes in colored tracklogs
Check why balloons don't point at point
Clean up heirarchical altitude marks
Clean up global styles
Use ExtendedData for tables

9
igc2kmz/__init__.py

@ -560,9 +560,6 @@ class Flight(object):
coord1 = self.track.coords[sl.stop]
coord = coord0.halfway_to(coord1)
point = kml.Point(coordinates=[coord], altitudeMode='absolute')
line_string = kml.LineString(coordinates=[coord0, coord1],
altitudeMode='absolute')
multi_geometry = kml.MultiGeometry(point, line_string)
total_dz_positive = total_dz_negative = 0
peak_climb = util.Bounds(0.0)
for i in xrange(sl.start, sl.stop):
@ -627,12 +624,16 @@ class Flight(object):
3.6 * dp / dt + 0.5)
elif title == 'dive':
name = '%dm at %.1fm/s' % (-dz, dz / dt)
placemark = kml.Placemark(multi_geometry,
placemark = kml.Placemark(point,
name=name,
description=kml.CDATA(table),
Snippet=None,
styleUrl=style_url)
folder.add(placemark)
line_string = kml.LineString(coordinates=[coord0, coord1],
altitudeMode='absolute')
placemark = kml.Placemark(line_string, styleUrl=style_url)
folder.add(placemark)
return kmz.kmz(folder)
def make_graph_chart(self, globals, values, scale):

Loading…
Cancel
Save