通过 Hook 或 Crook 重新调整 GPS 坐标

发布于 2024-08-21 08:39:39 字数 373 浏览 10 评论 0原文

你好,由于中国偏执狂和谷歌是一群三色紫罗兰的原因,我现在的情况是,我需要更改存储在 gpx 文件中的许多 GPS 航路点,以便它们与谷歌地图正确对齐,这是不是< /em> 正确对齐...出于上述偏执的原因。

所以我有一个带有已知地标(火车站)的航路点,我可以在谷歌地图上看到该地标,我希望能够将我的 gpx 文件中的航路点移动到地图上的新航路点,并拥有所有其他航路点相应调整。

这可以通过在地图上的车站上创建一个新的航路点并计算然后应用差异或使用某种 GUI 拖放来实现。

我不知道如何解决这个问题,想知道除了说服谷歌停止成为三色堇之外,是否有人知道一个不错的解决方案……

当然谷歌可以随机改变他们的魔法错位,然后我真的完蛋了,但是嘿嘿。

Hello due to reasons of chinese paranoia and google being a bunch of pansies I am in the situation where I need to alter a number of gps waypoints stored in a gpx file so they are are correctly aligned with google map which is not correctly aligned... for reasons for aforementioned paranoia.

So I have a waypoint with a known landmark (railyway station) I can see that landmark on the google map, I would like to be able to move the waypoint in my gpx file to the new the one on the map and have all the other waypoints adjust accordingly.

This could be achieved by creating a new waypoint over the station on the map and calculating and then applying the difference or with some kind of GUI drag and drop.

I have no idea how to go about this and wonder if anyone knows of a decent solution other than persuading google to stop being pansies....

Of course google could change their magic misalignment randomly and then I'm truely screwed but hey ho.

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

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

发布评论

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

评论(2

金兰素衣 2024-08-28 08:39:39

好吧,您可以构建一个小型网络应用程序,获取您的 GPX 轨迹并将其覆盖在谷歌地图上。然后编写一些代码,让用户输入一些“校正对”,然后单击 GPX 点,然后单击谷歌地图上的点。一旦他们对 n 个点(其中 n 是您想要达到准确度的点数)执行此操作,您就可以计算平均误差 X 和误差 Y。然后你可以对每个 GPX 点进行 X + errorX 和 Y + errorY ,平均来说应该很好。

这有道理吗?

Well you could build a small web app that takes your GPX track and overlays it on google maps. Then write some code to let the user enter some number of "corrected pairs" where they click on the GPX point and then the point on google maps. Once they have done this for n number of points, where n is the number of points you want to achieve accuracy, you can calculate an average errorX and errorY. Then you can go about and for each GPX point do X + errorX and Y + errorY which should be good on average.

Does that make sense?

春夜浅 2024-08-28 08:39:39

感谢 TheSteveO 的回复,我忘记了这一点,最后我使用了这里提供的相当方便的 javascript 库

http://www.movable-type.co.uk/scripts/latlong.html

为自己构建一个简单的命令行脚本,根据您的建议加载和重新对齐所有坐标谷歌地图上的已知点和同一地点的航路点之间的差异。

我确实尝试在 php 中实现它,但不幸的是遇到了一系列浮点数学问题,并且由于时间紧迫,只能采用 javascript 路线。

Thanks for the reply TheSteveO I'd forgotten about this, in the end I used the rather handy javascript library provided here

http://www.movable-type.co.uk/scripts/latlong.html

To build myself a simple command line script which loads and realigns all the coordinates based on, as you suggested the difference between a known point on google maps and a waypoint of the same place.

I did attempt to implement it in php but unfortunately ran into a slew of floating point math problems and being pressed for time just went the javascript route.

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