本文介绍了包含速度信息的GPX文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用DDMS透视图来模拟带有gpx文件的android模拟器的运动.但是,我只能找到其中包含纬度/经度对的gpx文件,而不是速度,高度等.在找到一个包含上述数据用于模拟器测试目的的良好gpx文件的地方,是否有任何建议?谢谢.

I am currently using the DDMS perspective to simulate movement of the android emulator with a gpx file. However, I have only been able to find gpx files with lat/lon pairs in them and not with speed, altitude, etc. Any recommendations on a place to find a good gpx file which contains the above data for emulator testing purposes? Thanks.

更新:我注意到我使用的文件确实包含高度,但是当我检索它时,它显示为零.仅纬度/经度正确显示. android模拟器只能使用gpx文件的纬度/经度,而不能使用海拔高度吗?

Update : I've noticed that the file I am using does indeed have altitude in it, yet when I retrieve it it shows up as zero. Only the lat/lon is showing up properly. Can the android emulator only use the lat/lon of gpx files and not altitude?

推荐答案

您无需在"Tool to download GPX"

您可以简单地从Google地图生成.kml.gpx文件. :)

You can simply generate .kml and .gpx files from google maps. :)

  1. 转到 http://maps.google.com/
  2. 点击Google徽标下方的Get Directions超级链接.
  3. 输入您当地或世界上任何地方的两个已知地点,可以乘车到达,然后单击获取路线".
  4. Google会为您生成行车路线.
  5. 现在,当您在地图上看到彩色的方向时,请单击窗口右侧的Link超级链接.
  6. 复制Paste link in email or IM部分中的链接并将其复制到您的地址栏中,按Enter.
  7. 现在可以创建
  1. Go to http://maps.google.com/
  2. Click on Get Directions hyper-link below google logo.
  3. Enter two known places from your local area or anywhere in the world, which could be reached by car that is and click on Get Directions.
  4. Google will generate driving directions for you.
  5. Now when you see coloured direction showing up on the map click on Link hyper-link on the right side of the window.
  6. Copy link from Paste link in email or IM section and copy it to you address bar, hit enter.
  7. Now to create

.kml

我强调这种方法,因为它不需要任何第三方干预,并且可以达到目的.

I am emphasizing this approach since it does not need any third party intervention andcan serve the purpose.

  • 转到地址栏,然后在整个looong地址的末尾键入&output=kml这是一个例子:

& output = kml

系统会提示您保存.kml文件,然后将其保存到任何位置,然后将其加载到Eclipse中.

You'll be prompted to save the .kml file save it anywhere and load it to eclipse.

.gpx

  • 从IE或Mozilla Firefox执行所有步骤,并添加一个书签或添加到收藏夹栏

  • Perform all the steps from IE or Mozilla Firefox and add a bookmarklet or Add to favorites bar

javascript:(function(){var     script=document.createElement('script');script.src='http://www.elsewhere.org/GMapToGPX/gmaptogpx.js';document.getElementsByTagName('head')[0].appendChild(script);})()

  • 现在将looooong链接粘贴到地址栏中后,单击此书签,将提示您.gpx文件,将整个代码保存在文本编辑器中,并将其另存为.gpx,然后完成操作./p>

  • Now after pasting the looooong link in the address bar click on this bookmarklet you'll be prompted with the .gpx file save the entire code in the text editor and save it as .gpx and your done.

    您可以访问 http://www.elsewhere.org/journal/gmaptogpx/,以获取有关如何操作的完整教程生成.gpx.

    You can visit http://www.elsewhere.org/journal/gmaptogpx/ for entire tutorial on how to generate .gpx.

    关于第二个问题,模拟器不能模拟海拔高度.

    And about your second question emulators cannot simulate altitudes.

    这篇关于包含速度信息的GPX文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

  • 09-19 00:27