[1.5.1] Getting a more compact KML?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[1.5.1] Getting a more compact KML?

Gilles
This post has NOT been accepted by the mailing list yet.
Hello

I use the following command to convert a GPX to KML:

gpsbabel -i gpx -f input.gpx -o kml,points=0 -F output.kml

Is there a way to get rid of the following without affecting the route as displayed in my smartphone?

======== START
    <LookAt>
      <longitude>2.156525</longitude>
      <latitude>48.673520</latitude>
      <range>50504.606038</range>
    </LookAt>
   
    <Style id="track_n"> <IconStyle> <scale>.5</scale> <Icon> <href>http://earth.google.com/images/kml-icons/track-directional/track-none.png</href> </Icon> </IconStyle> <LabelStyle> <scale>0</scale> </LabelStyle> </Style>   
    <Style id="track_h"> <IconStyle> <scale>1.2</scale> <Icon> <href>http://earth.google.com/images/kml-icons/track-directional/track-none.png</href> </Icon> </IconStyle> </Style>    <StyleMap id="track">
      <Pair>
        <key>normal</key>
        <styleUrl>#track_n</styleUrl>
      </Pair>
      <Pair>
        <key>highlight</key>
        <styleUrl>#track_h</styleUrl>
      </Pair>
    </StyleMap>
   
    <Style id="waypoint_n"> <IconStyle> <Icon> <href>http://maps.google.com/mapfiles/kml/pal4/icon61.png</href> </Icon> </IconStyle> </Style>   
    <Style id="waypoint_h"> <IconStyle> <scale>1.2</scale> <Icon> <href>http://maps.google.com/mapfiles/kml/pal4/icon61.png</href> </Icon> </IconStyle> </Style>    <StyleMap id="waypoint">
      <Pair>
        <key>normal</key>
        <styleUrl>#waypoint_n</styleUrl>
      </Pair>
      <Pair>
        <key>highlight</key>
        <styleUrl>#waypoint_h</styleUrl>
      </Pair>
    </StyleMap>
    <Style id="lineStyle"> <LineStyle> <color>99ffac59</color> <width>6</width> </LineStyle> </Style>    <Folder>
      <name>Tracks</name>
      <Folder>
        <name>ACTIVE LOG</name>
        <snippet/>
        <description>
<![CDATA[<table>
<tr><td><b>Distance</b> 30.4 mi </td></tr>
</table>]]>

</description>
        <Placemark>
          <name>Path</name>
          <styleUrl>#lineStyle</styleUrl>
          <LineString>
            <tessellate>1</tessellate>
            <coordinates>
======== END

Thank you.