随机地理坐标不正确

发布于 2024-11-15 22:15:35 字数 270 浏览 0 评论 0原文

有时,当设备在 GeoPositionAccuracy 设置为 High 且 MovementThreshold 设置为 0 的情况下拉取坐标时,捕获的地理坐标距离较远,并且与其他坐标不内联。如何防止这种情况发生或从我的地理坐标集合中删除该地理坐标?您会注意到,在下图中第二个浅灰色“e”的正上方以及 11 号公路符号的右侧,您会看到有一点点向外移动。第一个灰色小“e”下也是同样的事情。

在此处输入图像描述

Sometimes when the device is pulling coordinates with the GeoPositionAccuracy set to High and the MovementThreshold set to 0, the GeoCoordinate that is captured is further away and not inline with the other coordinates. How can I prevent that or remove that GeoCoordinate from my collection of GeoCoordinates? You'll notice that in the imge below right above the second light grey 'e' and to the right on the route 11 symbol, you'll see a little jog out. The same thing under the first little grey 'e'.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

寒冷纷飞旳雪 2024-11-22 22:15:35

GPS 根据以卫星为中心的炮弹相交体积来计算位置。如果精确度很高,它们将是球体,但存在误差容限,因此它是相交的壳。它们在地平线上越靠近,相交体积就越大(又长又薄)。 GPS 硬件选择最好的三颗卫星。 “最佳”结合了水平角度间隔和信号强度。

进入建筑物的阴影可能会导致卫星组发生变化。精度衰减的显着变化可能伴随着计算位置的突然大的变化。这种技术的俚语名称是“GPS 传送”,它在混凝土峡谷和停在金属遮阳篷下的履带式车辆中非常常见。更复杂的系统将使用加速度计来识别这种现象,因为真正的位置的突然大幅变化会伴随着高加速度。通过大量样本,质心可以给出实际位置的合理指示。

GPS computes location from the intersection volume of shells centred on satellites. With perfect accuracy they'd be spheres but there's an error tolerance so it's intersecting shells. The closer together they are on the horizon, the bigger the intersection volume is (long and thin). GPS hardware picks the best three satellites. "Best" incorporates horizontal angular separation and signal strength.

Moving into the shadow of a building can cause the set of satellites to change. Substantial change in dilution of precision may be accompanied by abrupt large changes in computed position. The slang name for this is "GPS teleporting" and it is very common in concrete canyons and in tracked vehicles that park under metal awnings. More sophisticated systems will use accelerometers to recognise this phenomenon by virtue of the fact that that a real sudden large change of position would be accompanied by a high acceleration. Over a number of samples the centroid can give a reasonable indication of the actual position.

无名指的心愿 2024-11-22 22:15:35

当您将运动阈值设置为零时,您的 GPS 会变得非常敏感,因此会引入噪音(来自环境)。我猜测很可能是噪音导致了某些抖动。来自最佳实践指南

设定合理的移动阈值

因为移动设备中的 GPS 硬件
没有天线,传感器
通常被设计得非常
敏感的。这种敏感性可能会导致
在少量噪音的情况下
来自表面反射的信号和
其他环境影响。主要
定位服务类,
GeoCoordinateWatcher 公开了
MovementThreshold 属性。这
属性指定最小变化
处于必须发生的位置
在 PositionChanged 事件之前
提出。如果您设置
MovementThreshold 属性非常
低价值,你可能会导致你的
应用程序接收事件
实际上是噪声的结果
信号。平滑信号
仅代表显着变化
位置,设置运动阈值
属性至少 20 米。这
也会导致功率降低
您的应用程序的消耗。
将移动阈值设置为 0
米将导致事件
筹集频率为每一次
第二。此设置可能有用
导航应用程序。

When you set your movement threshold to zero, your GPS becomes very sensitive and therefore noise is introduced (from the environment). I'm guessing that it may well be noise that's causing certain jittering. From the Best Practice guide

Set a Reasonable Movement Threshold

Because GPS hardware in mobile devices
do not have an antenna, the sensors
are usually designed to be very
sensitive. This sensitivity can result
in a small amount of noise in the
signal from surface reflection and
other environmental effects. The main
Location Service class,
GeoCoordinateWatcher exposes the
MovementThreshold property. This
property specifies the minimum change
in position that must take place
before the PositionChanged event is
raised. If you set the
MovementThreshold property to a very
low value, you can cause your
application to receive events that are
actually the result of noise in the
signal. To smooth out the signal to
only represent significant changes in
position, set the MovementThreshold
property to at least 20 meters. This
will also result in lower power
consumption for your application.
Setting the movement threshold to 0
meters will result in the event being
raised as frequently as once per
second. This setting may be useful for
navigation applications.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文