查找国家的GPS坐标没有互联网接入 [英] Lookup country for GPS coordinates without Internet access

查看:136
本文介绍了查找国家的GPS坐标没有互联网接入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要找出哪个国家的GPS坐标是在没有互联网接入的设备上(例如,但没有简单的在线解决方案)。没有地理信息系统的经验,我想我需要某种模块来静态存储国家的形状,并匹配当前的位置。



因此我喜欢询问什么样的工具最适合这一点,以及获取国家数据的最佳途径是什么。我在一个嵌入式Linux机器上使用了Python。

解决方案

有一个形状文件此处带有所有国家/地区边界。然后,您可以使用 OGR 或诸如这个来访问数据。

I need to find out in what country given GPS coordinates are, on a device that has no Internet access (e.g. this, but without the easy on-line solution). Having no experience with GIS, I guess I'd need some kind of module that would statically store shapes of countries and match current location against them.

I'd therefore like to ask what kind of tools would be best for this, and what is the best way to obtain the country data. I'm using Python on an embedded Linux box.

解决方案

There's a shape file here with all of the country borders. You can then use OGR or something like this to access the data.

这篇关于查找国家的GPS坐标没有互联网接入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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