Folder containers tunning
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Wed, 9 May 2012 12:11:15 +0000 (12:11 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Wed, 9 May 2012 12:11:15 +0000 (12:11 +0000)
bin/show_targets_ships.py

index 185772ca65567e96cca0a6018602a5229be20e46..53b13844fb0d7f710294365179694474ed3a875d 100755 (executable)
@@ -791,6 +791,8 @@ def main():
         for mmsi in target_mmsi_iterator:
             nmea_generator = NmeaFeeder(mmsi, dt_end, dt_start, filters, granularity=options.granularity, max_count=options.max_count)
             result += '<Folder>\n'
+            # TODO
+            #result += u'<name>' + xml_escape(nmea.get_title()) + u'</name>\n'
             result += format_boat_intime_section(nmea_generator, kml_displayopt|KML_DISPLAYOPT_HISTORICAL)
             result += '</Folder>\n'
         if not options.output_innerkml:
@@ -803,9 +805,9 @@ def main():
             # don't call STYLE.make_header since there is no icons
         for mmsi in target_mmsi_iterator:
             nmea_generator = NmeaFeeder(mmsi, dt_end, dt_start, filters, granularity=options.granularity, max_count=options.max_count)
-            result += '<Folder>\n'
+            #result += '<Folder>\n'
             result += format_boat_track_section(nmea_generator)
-            result += '</Folder>\n'
+            #result += '</Folder>\n'
         if not options.output_innerkml:
             result += KML_FOOTER