irfan-arshad-arbisoft / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

KML not correct/incompatible with google Earth #1520

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.record a track
2.export/sync to google drive
3.load into Google Earth

What is the expected output? What do you see instead?
I`d like to see a line depicting my path in space, over the ground.
Instead track contains series of vertices, ignored by google earth, only pins 
for start and end of track.

Problem I see at a first glance:
In the example from 
https://developers.google.com/kml/documentation/kmlreference#gxtrack
gx:track is a bunch of <when> followed by bunch of <gx:coord>
 <gx:Track>
      <when>2010-05-28T02:02:09Z</when>
      <when>2010-05-28T02:02:35Z</when>
      <when>2010-05-28T02:02:44Z</when>
      <when>2010-05-28T02:02:53Z</when>
      <when>2010-05-28T02:02:54Z</when>
      <when>2010-05-28T02:02:55Z</when>
      <when>2010-05-28T02:02:56Z</when>
      <gx:coord>-122.207881 37.371915 156.000000</gx:coord>
      <gx:coord>-122.205712 37.373288 152.000000</gx:coord>
      <gx:coord>-122.204678 37.373939 147.000000</gx:coord>
      <gx:coord>-122.203572 37.374630 142.199997</gx:coord>
      <gx:coord>-122.203451 37.374706 141.800003</gx:coord>
      <gx:coord>-122.203329 37.374780 141.199997</gx:coord>
      <gx:coord>-122.203207 37.374857 140.199997</gx:coord>
    </gx:Track>

But in MyTracks exported kml these elements are interlaced like this:
...
<gx:interpolate>1</gx:interpolate>
<gx:Track>
<when>2014-05-25T09:23:38.480Z</when>
<gx:coord>76.465493 43.126981 1913.6458740234375</gx:coord>
<when>2014-05-25T09:25:20.988Z</when>
<gx:coord>76.465495 43.127062 1911.7314453125</gx:coord>
<when>2014-05-25T09:25:21.723Z</when>
<gx:coord>76.465495 43.127073 1911.7215576171875</gx:coord>
<when>2014-05-25T09:26:21.370Z</when>
<gx:coord>76.465507 43.127131 1913.2313232421875</gx:coord>
<when>2014-05-25T09:26:21.729Z</when>
<gx:coord>76.465521 43.127174 1912.0601806640625</gx:coord>
<when>2014-05-25T09:26:22.827Z</when>
<gx:coord>76.46553 43.12723 1911.005126953125</gx:coord>
<when>2014-05-25T09:26:23.769Z</when>
<gx:coord>76.465543 43.127293 1909.642578125</gx:coord>
<when>2014-05-25T09:26:24.844Z</when>
<gx:coord>76.465544 43.127346 1908.312255859375</gx:coord>
<when>2014-05-25T09:26:25.788Z</when>
<gx:coord>76.465536 43.127404 1907.0517578125</gx:coord>
<when>2014-05-25T09:26:26.854Z</when>
<gx:coord>76.46552 43.127462 1906.077392578125</gx:coord>
<when>2014-05-25T09:26:27.809Z</when>
...

Putting them as per documentation example solves the issue.

What version of MyTracks are you using? On what version of Android? On what
phone?
Ver 2.0.6 Samsung Galaxy Note 2 GT-N7100 Android 4.3 Kernel 3.0.3-2138564

If possible please provide a log by uploading here.
Detailed instructions can be found here:
http://code.google.com/p/mytracks/wiki/HowToReportErrors

Please provide any additional information here:

Original issue reported on code.google.com by Mister...@gmail.com on 30 May 2014 at 6:19

GoogleCodeExporter commented 9 years ago
Which version of Google Earth are you using.
Based on the kml spec, interlaced should also work.

Original comment by jshih@google.com on 11 Jun 2014 at 8:34

GoogleCodeExporter commented 9 years ago
I can confirm that the Google Earth Android app can't read the exported files. 
As a consequence playing back the path doesn't work.

Google Earth on Windows 7 is able to read the exported KMZ files. Google Earth 
on Android version 8.0.1.2311 can't (latest version according to Play Store).

Original comment by roeland....@gmail.com on 20 Nov 2014 at 9:38