问题标签 [gpx]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
285 浏览

xml - 如何从 Postgres 表中创建分段的 GPX (xml) 文件?

我在 Postgres 中将数据库表导出到 GPX 时遇到问题,是否有一些分步指南?

0 投票
8 回答
50516 浏览

ios - iOS 模拟器的 GPX 文件

在哪里可以找到可以导入 iOS 模拟器的 GPX 文件?

iOS 模拟器仅包含世界各地的静态位置和步行/自行车/汽车驾驶模拟。这对于单元测试或其他特定用例来说还不够好。

这是 GPX 文件:http ://www.topografix.com/GPX/1/1/gpx.xsd

我如何在 Simulator 或 Xcode 中模拟沿某些自定义路线的运动,因为它在 ios 移动开发中是必需的?

0 投票
2 回答
3336 浏览

python-2.7 - 使用 Python ElementTree.register_namespace 读取 GPX?

一段时间以来,我一直在用头撞墙。根据文档,这应该很简单。我要做的就是读取 GPX 文件。然而,GPX 文件大量使用命名空间,这在理论上是有意义的。不过,我似乎无法让 ElementTree 阅读它们。这是我正在尝试使用的代码...

要从这样的 GPX 文件中提取航点...

诚然,它需要的不仅仅是print eTree.findall('wpt').,但如果我能做到这一点,我以前曾使用过 xml。那部分很容易。不过,这个命名空间的东西让我发疯了。

我提前谢谢你。这让我发疯了。

0 投票
4 回答
6765 浏览

android - 在Android中解析本地gpx文件

我按照这个例子来解析Android中的本地GPX文件: http ://android-coding.blogspot.pt/2013/01/get-latitude-and-longitude-from-gpx-file.html

一切都可以正常访问“lat”和“long”,但我还需要获得“ele”值,但我所有的尝试都没有成功。任何人都可以给我一些打击来做到这一点?

提前致谢!最好的问候,NR。

0 投票
1 回答
70 浏览

iphone - ios在文档文件中注册文档

我正在开发读取附加到电子邮件的 gpx (topografix) 文件的应用程序。我已成功将此文档类型注册到我的应用程序,因此每当我选择此类文件时,我都可以选择通过此应用程序在 iPhone 上打开它。它在我的 iPhone 上运行良好,但在 iPad 上,我的应用程序无法打开此类文件,因此我的应用程序不会出现在能够打开它的应用程序列表中。此应用程序使用 iPhone 环境,并设置为 iPhone 不是通用环境。通过改变通用环境不会改变任何东西。为什么我的应用无法在列表中识别?

0 投票
4 回答
2839 浏览

core-location - Xcode 5 无法在 iOS 7 设备上模拟位置

我似乎无法使用 Xcode 5 和 iOS 7 设备或 iOS 7 模拟器来模拟位置。但是,在 iOS 6 设备上运行相同的应用程序时,它可以正常工作。是否有任何解决方法或是否更改了所需的 GPX 格式?

0 投票
2 回答
2199 浏览

php - 如何在 php 中将 KML 转换为 GPX

我需要做的是开发一个网页,允许用户在硬盘驱动器上指定一个 KML 文件,然后我在后端的代码(在 PHP 中)将为该 KML 生成 GPX 文件。我似乎找不到有关如何为其编写代码的指针,我猜应该是非常简单的解析技术。

我需要在这里实现类似这个工具的功能:http ://www.gpsvisualizer.com/convert_input

但他们没有为它提供 API。关于我如何解决这个问题的任何指示?

0 投票
1 回答
688 浏览

java - 无法在 Android Emulator Control(Android 调试监视器)中加载 .GPX 文件

问题是,当我在开发 android 应用程序时尝试加载 GPX 文件并通过“加载 GPX”加载文件时,我推送它,然后选择正确的文件后没有任何反应。问题可能出在哪里?在此处输入图像描述

示例文件:

第二:

第三

0 投票
1 回答
1392 浏览

python - 如何从 gdx 跟踪点创建 django.contrib.gis.db.models.PointField?

我正在尝试 gpxpy lib,它可能正在工作,但我无法创建 PointField... 找不到关于它的文档。

另外,如何从 gpx 轨道创建一组带有 GDAL 的 PointFields?

这是我的代码,以备不时之需。

0 投票
1 回答
317 浏览

perl - Can't locate Geo/Gpx.pm in @INC apache mac

Though there are many queries flowing around asking the same question. But here the error is thrown by apache instead of Perl. I am trying to create an XML Response for the client on Mac OS X Mavericks and have written the perl script as follows:

For the apache to find the actual path of the Gpx.pm, I have used 'use lib' to show it the real path of the file. Although this script is working perfectly on command line, my apache server is throwing the following error:

I have used macports and have found searching through the Web that Mavericks has got perl 5.16 preinstalled. So apache may be using that and perl is using the macport installed libraries. On checking the paths mentioned by apache error_log file as I posted above, I have copied Gpx.pm in one of the libraries installed in Geo Folder but still not getting it resolved. On running 'which perl' The result

And 'which cpan' is giving

Kindly fix this issue as I am not able to move forward because of this. And I am not so familiar with apache.