views:

206

answers:

4

I am unable to load a GPX file in the DDMS eclipse plugin. When specifying a GPX file, no points are added to the emulator control list. I have tried adding KML files as well, generated in Google earth.

Is there a way to get these files to work? The content of the file is listed below:

<?xml version="1.0" encoding="UTF-8"?>
<gpx
  version="1.0"
  creator="RunKeeper - http://www.runkeeper.com"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://www.topografix.com/GPX/1/0"
  xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd"&gt;
<trk>
  <name>Running 11/30/09 3:37 pm11/30/09 3:37 pm</name>
  <time>2009-11-30T15:37:08Z</time>
<trkseg>
<trkpt lat="41.811406000" lon="-72.521427000">
 <ele>37.000000</ele>
 <time>2009-11-30T15:37:08Z</time>
</trkpt>
<trkpt lat="41.811030000" lon="-72.522882000">
 <ele>38.000000</ele>
 <time>2009-11-30T15:37:10Z</time>
</trkpt>
A: 

hi, i had a similar problem... in my case it helped to restart the emulator

poeschlorn
A: 

using wtk 2.5.2 and use this data saved as gps.xml in the emulator:

  <![CDATA[<waypoints>
  <waypoint time="1500" latitude="14.389796708964603" longitude="50.09985002736201" altitude="310" />
   <waypoint time="5500" latitude="14.390283327582706" longitude="50.099909292742595" altitude="310" /> 
   <waypoint time="5500" latitude="14.390282428592135" longitude="50.100262519964886" altitude="310" /> 
   <waypoint time="1500" latitude="14.390793552257932" longitude="50.10032395846041" altitude="310" />
  </waypoints>]]>
Daniel Rindt
A: 

I'm having the same problem. When I tried to load the gpx file, there was no response at all. The file was not loaded, and there is no error message. What's wrong? Is there any work around? I tried to restart the emulator, but it didn't help.

Sam
A: 

I just tried it with a load of my own GPX files and nothing happened. Then I tried an example from http://tramper.co.nz/?5613 and it worked.

It looks like the <?xml version="1.0" encoding="UTF-8" standalone="no" ?> at the beginning of the file needs to have a newline after it. Lots of GPX files just continue straight into the <gpx... tag within the first line.

Adding a newline there made DDMS a bit happier to load the file.

OJW