【问题标题】:DDMS plugin not loading GPX filesDDMS 插件不加载 GPX 文件
【发布时间】:2014-05-21 02:41:01
【问题描述】:

我无法在 DDMS eclipse 插件中加载 GPX 文件。指定 GPX 文件时,不会将任何点添加到仿真器控制列表中。我也尝试添加在 Google 地球中生成的 KML 文件。

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

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

【问题讨论】:

  • 我遇到了类似的问题......在我的情况下,它有助于重新启动模拟器

标签: android


【解决方案1】:

使用 wtk 2.5.2 并在模拟器中使用保存为 gps.xml 的数据:

  <![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>]]>

【讨论】:

    【解决方案2】:

    正如我在here 评论的那样,DDMS 似乎只支持 1.1 GPX 文件。更改根标签上与版本相关的不同属性以使用 1.1 应该会有所帮助:

    <gpx
      version="1.1"
      creator="RunKeeper - http://www.runkeeper.com"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://www.topografix.com/GPX/1/1"
      xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
    

    【讨论】:

      【解决方案3】:

      为您从 google earth 导出的 kml 文件提供免费的“修复程序”,google earth 也可以导入 GPX 并使编辑它们比通过 XML 筛选容易得多

      http://lab.soledadpenades.com/android/kml/

      【讨论】:

        猜你喜欢
        • 2014-06-10
        • 1970-01-01
        • 2017-09-11
        • 2011-10-18
        • 1970-01-01
        • 2016-03-06
        • 2021-01-22
        • 2016-12-17
        • 2011-11-06
        相关资源
        最近更新 更多