将GPS坐标转换为PDF地图上的位置 [英] Translate GPS coordinates to location on PDF Map

查看:154
本文介绍了将GPS坐标转换为PDF地图上的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道(从高层次看)采用建筑物的pdf平面布置图需要做什么,并使用GPS坐标确定您在该平面布置图上的位置?除了位置之外,用户还可以看到地图上另一个点的转向转向,沿着走廊,小卧室之间等。

案例:确定用户位置并将他们引导至建筑物中的会议室或人员办公室的iPhone应用程序。

我意识到这绝不是微不足道的,但任何帮助表示赞赏。谢谢!

解决方案

这是一个有趣的问题。当你使用核心位置时,你不一定要使用GPS。使用WiFi和手机信号塔三角测量,您可以获得相当不错的位置结果。所以从核心位置你可以得到一个经纬度修正。 (你也可以得到高度信息,因为GPS数据是三维的,你也会得到一个准确的数值。)

所以你有经度和纬度。您需要将这些坐标映射到PDF计划的坐标。假定该计划与经线和纬线对齐,并且您对计划中的某个点有一个经过长时间修正,则需要计算x轴缩放和y轴缩放。然后在PDF计划中计算经纬度到x-y坐标的计算。


I'd like to know (from a high level view) what would be required to take a pdf floor plan of a building and determine where exactly you are on that floor plan using GPS coordinates? In addition to location, the user would be presented with a "turn by turn" directions to another point on the map, navigating down hallways, between cubicles, etc.

Use case: an iPhone app that determined a user's location and guided them to a conference room or person's office in the building.

I realize that this is by no means trivial, but any help is appreciated. Thanks!

解决方案

It's an interesting problem. When you're using Core Location, you're not necessarily using GPS. Using WiFi and cell tower triangulation, you can get pretty good location results. So from Core Location you get a latitude and longitude fix. (You might also get altitude info, since GPS data is 3-dimensional. You also will get an accuracy value.)

So you have lat and lon. You need to map these coordinates to the PDF plan's coordinates. Assuming that the plan is aligned with the latitude and longitude lines, and that you have a lat-long fix for one of the points on the plan, you need to calculate the x-axis scale and y-axis scale. Then it's some calculations to map the lat-long to x-y coordinates on the PDF plan.

这篇关于将GPS坐标转换为PDF地图上的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆