Get countries within range of LAT/LONG coordinates

久未见 提交于 2019-12-11 14:55:12

问题


Trouble!

I'm looking for a way to find the countries within a given range of LAT/LONG coordinates.

E.g.:

When viewing an area in Africa using Google Maps, I get out which countries that are in my current view.

This is a bit ambitious, and I think the main problem will be dealing with accuracy of the needed polygons. The accuracy of these don't need to be all that great, the borders can probably be tens of miles off, or even more.

This will be needed for the entire world.


回答1:


You can solve this easily using QGIS based on the assumption that you have

  1. A GIS layer of Africa (if not you can find one using google
  2. A point layer based on Lat long (or you can use Qgis's text delimited import)

using ftools -or- Vector menu, there is a feature called points in polygons that should solve your problem




回答2:


You can try using the Yahoo WOE ID stuff... Here is a great article on it: Yahoo Woe. Flickr has a similar service (I think it uses the Yahoo one under it...): Flickr



来源:https://stackoverflow.com/questions/2669438/get-countries-within-range-of-lat-long-coordinates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!