DDMS插件不加载GPX文件 [英] DDMS plugin not loading GPX files

查看:165
本文介绍了DDMS插件不加载GPX文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法加载在DDMS Eclipse插件一个GPX文件。当指定GPX文件,没有点被添加到模拟器控制列表。我曾尝试加入KML文件,以及在谷歌地球上产生的。

有没有办法让这些文件的工作?该文件的内容列表如下:

 < XML版本=1.0编码=UTF-8&GT?;
< GPX
  版本=1.0
  创作者=RunKeeper  -  http://www.runkeeper.com
  的xmlns:XSI =htt​​p://www.w3.org/2001/XMLSchema-instance
  的xmlns =htt​​p://www.topografix.com/GPX/1/0
  XSI:的schemaLocation =htt​​p://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
< TRK>
  <名称>运行09年11月30号3:37 PM11 / 30/09 3:37 PM< /名称>
  <时间> 2009-11-30T15:37:08Z< /时间>
< trkseg>
< trkpt纬度=41.811406000LON = -  72.521427000>
 < ELE> 37.000000< / ELE>
 <时间> 2009-11-30T15:37:08Z< /时间>
< / trkpt>
< trkpt纬度=41.811030000LON = -  72.522882000>
 < ELE> 38.000000< / ELE>
 <时间> 2009-11-30T15:37:10Z< /时间>
< / trkpt>
 

解决方案

我只是想用我自己的GPX文件的负荷,什么都没有发生。然后,我尝试了 TRAMPER例如和它的工作。

它看起来像< XML版本=1.0编码=UTF-8独立=无> 在文件的开头需要在它后面有一个换行符。很多GPX的文件只是继续直行进入<第一行内GPX ... 标记

添加一个换行符有国产D​​DMS过得快乐加载文件。

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">
<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>

解决方案

I just tried it with a load of my own GPX files and nothing happened. Then I tried a tramper example 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.

这篇关于DDMS插件不加载GPX文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆