gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:01:27 27 4
gpt4 key购买 nike

问题是,当我在开发 Android 应用程序时尝试加载 GPX 文件并通过“加载 GPX”加载文件时,我推送了它,在选择了正确的文件后,之后什么也没有发生。问题出在哪里? enter image description here

示例文件:

<?xml version="1.0" encoding="UTF-8"?>
<gpx
version="1.0"
creator="GPSBabel - http://www.gpsbabel.org"
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">
<time>2013-10-27T21:12:32Z</time>
<bounds minlat="54.347790000" minlon="18.519200000" maxlat="54.382660000" maxlon="18.644040000"/>
<trk>
<name>05.05.2013</name>
<trkseg>
<trkpt lat="54.349850000" lon="18.627770000">
<ele>23.000000</ele>
</trkpt>
</trkseg>
</trk>
</gpx>

第二:

<?xml version="1.0"?>
<gpx
version="1.0"
creator="ExpertGPS 1.1 - http://www.topografix.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">
<time>2002-02-27T17:18:33Z</time>
<bounds minlat="42.401051" minlon="-71.126602" maxlat="42.468655" maxlon="-71.102973"/>
<wpt lat="42.438878" lon="-71.119277">
<ele>44.586548</ele>
<time>2001-11-28T21:05:28Z</time>
<name>5066</name>
<desc><![CDATA[5066]]></desc>
<sym>Crossing</sym>
<type><![CDATA[Crossing]]></type>
</wpt>

第三

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<gpx
version="1.0"
creator="ExpertGPS 1.1.1 - http://www.topografix.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.topografix.com/GPX/1/0"
xmlns:topografix="http://www.topografix.com/GPX/Private/TopoGrafix/0/1"
xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd http://www.topografix.com/GPX/Private/TopoGrafix/0/1 http://www.topografix.com/GPX/Private/TopoGrafix/0/1/topografix.xsd">
<number numpoints="23" numwpts="2"></number>
<wpt lat="35952967" lon="-83929158" description="Construction"></wpt>
<wpt lat="35955038" lon="-83929126" description="Heavy traffic"></wpt>
<trk>
<trkseg>
<trkpt lat="35956445" lon="-83925379" grade="1"></trkpt>
<trkpt lat="35956567" lon="-83925450" grade="1"></trkpt>
</trkseg>
</trk>
</gpx>

最佳答案

解决方案是使用新的 gpx 版本 <gpx version="1.1" > ,我发现这是唯一有效的。

关于java - 无法在 Android 模拟器控件(Android 调试监视器)中加载 .GPX 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19624545/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com