How to get timestamp + coords into KML <description> tag

View: New views
2 Messages — Rating Filter:   Alert me  

How to get timestamp + coords into KML <description> tag

by Zimmer, Hans-Joachim :: Rate this Message:

| View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello,

 

I am converting GPX (waypoints, created on Garmin Dakota) to KML. How can I get the waypoints’ timestamp, coordinates, altitude etc into the <description> tag of the resulting KML? Gpsbabel does it for trackpoints and routepoints, but not for waypoints. The data are in the KML, but not in <description> tag. The downside is that this way, GoogleEarth for example cannot display this information.

 

I append two examples of input GPX and resulting KML, one for a trackpoint (works great) and another for a waypoint (does not work the way it should in my humble opinion).

 

 

 

Handled nicely by gpsbabel - trackpoint description

---------------------------------------------------

 

Input Current.gpx:

 

<trkpt lat="49.199337" lon="7.222185"><ele>354.38</ele><time>2011-11-27T14:30:09Z</time></trkpt>

 

Resulting KML:

 

<Placemark><name>Current Track: 27 NOV 2011 14:32-66</name><Snippet/><description>

              <table>

                <tr><td>Longitude: 7.222185 </td></tr>

                <tr><td>Latitude: 49.199337 </td></tr>

                <tr><td>Altitude: 354.380 meters </td></tr>

                <tr><td>Speed: 5.1 km/hour </td></tr>

                <tr><td>Heading: 229.6 </td></tr>

                <tr><td>Time: 2011-11-27T14:30:09Z </td></tr>

              </table>

            </description><LookAt><longitude>7.222185</longitude><latitude>49.199337</latitude><tilt>66</tilt></LookAt><TimeStamp><when>2011-11-27T14:30:09Z</when></TimeStamp><styleUrl>#track</styleUrl><Point><coordinates>7.222185,49.199337,354.38</coordinates></Point></Placemark>

 

Currently handled poorly by gpsbabel -  Waypoint description

------------------------------------------------------------

 

Input Waypoint.gpx:

 

<wpt lat="49.167132" lon="7.221754"><ele>212.260941</ele><time>2011-11-27T13:32:27Z</time><name>START</name><sym>Flag, Green</sym></wpt>

 

Resulting KML:

 

<Placemark><name>START</name><TimeStamp><when>2011-11-27T13:32:27Z</when></TimeStamp><styleUrl>#waypoint</styleUrl><Point><coordinates>7.221754,49.167132,212.26</coordinates></Point></Placemark>

 

 

 

 

 


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc

Re: How to get timestamp + coords into KML <description> tag

by Robert Lipe-4 :: Rate this Message:

| View Threaded | Show Only this Message


On Tue, Nov 29, 2011 at 1:31 AM, Zimmer, Hans-Joachim <hans-joachim.zimmer@...> wrote:

Hello,

 

I am converting GPX (waypoints, created on Garmin Dakota) to KML. How can I get the waypoints’ timestamp, coordinates, altitude etc into the <description> tag of the resulting KML? Gpsbabel does it for trackpoints and routepoints, but not for waypoints. The data are in the KML, but not in <description> tag. The downside is that this way, GoogleEarth for example cannot display this information.

It seems inconsistent, but it's intentional.   The way we do balloon data in Track is actually pretty terrible, but it was the best we could do when that was added for Earth 4.0.  In modern times, that stuff should totally be in an ExtendedData array and have all that formatting gunk pushed into a style instead of the <td>.  There are all kinds of problems with the way we do track data (units are baked in at KML cook time, no option to display time formats, no localization, etc.) that don't make sense to do to waypoints.

The attributes for a waypoint actually can be displayed in Earth.  Right click on the Placemark in the left panel and Get Info.  There you'll see a tabbed dialog with the coordinates, time, elevation, and such.   This is actually a much more sane way to handle these.  For example, coordinates will be displayed in whatever format you've chosen in Earth instead of baked into a table.

RJL

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc