create a kmz file

thanks to Michael for the tip
This commit is contained in:
Andrew Tridgell 2011-11-11 20:05:39 +11:00
parent 8a3ea5bfff
commit 4b89bc174f
1 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ def convert_gpx():
gpx = m + '.gpx' gpx = m + '.gpx'
kml = m + '.kml' kml = m + '.kml'
util.run_cmd('gpsbabel -i gpx -f %s -o kml,units=m,floating=1 -F %s' % (gpx, kml), checkfail=False) util.run_cmd('gpsbabel -i gpx -f %s -o kml,units=m,floating=1 -F %s' % (gpx, kml), checkfail=False)
util.run_cmd('zip %s.kmz %s.kml' % (m, m), checkfail=False)
return True return True
@ -241,7 +242,7 @@ def run_tests(steps):
results.addglob('DataFlash Log', '*.flashlog') results.addglob('DataFlash Log', '*.flashlog')
results.addglob("MAVLink log", '*.mavlog') results.addglob("MAVLink log", '*.mavlog')
results.addglob("GPX track", '*.gpx') results.addglob("GPX track", '*.gpx')
results.addglob("KML track", '*.kml') results.addglob("KMZ track", '*.kmz')
results.addfile('ArduPlane build log', 'ArduPlane.txt') results.addfile('ArduPlane build log', 'ArduPlane.txt')
results.addfile('ArduPlane code size', 'ArduPlane.sizes.txt') results.addfile('ArduPlane code size', 'ArduPlane.sizes.txt')
results.addfile('ArduPlane stack sizes', 'ArduPlane.framesizes.txt') results.addfile('ArduPlane stack sizes', 'ArduPlane.framesizes.txt')