在哪里可以找到GeoJSON格式的英国区域地图 [英] Where to find the UK's regions map on GeoJSON format
问题描述
我正在尝试获取英国的区域地图, http://en.wikipedia.org/wiki/Regions_of_England ,采用GeoJSON格式,可在网站上的网络访问地图上使用.是否可以在任何地方以GeoJSON格式获取不同国家/地区的数据?
I am trying to get the uk's regions map, http://en.wikipedia.org/wiki/Regions_of_England, on GeoJSON format to use it on a web visits map on a website. Is there any place where you can get the data for different countries on GeoJSON format?
推荐答案
您可以从以下位置下载英国的行政区域: https://www.ordnancesurvey.co.uk/opendatadownload/products.html
You can download the UK administrative boundaries from: https://www.ordnancesurvey.co.uk/opendatadownload/products.html
向下滚动页面,直到看到边界线.
Scroll down the page until you see Boundary-Line.
您需要使用GIS工具将形状文件转换为geojson.这是一个分步教程:
You'll need to convert the shape files to geojson with a GIS tool. Here's a step-by-step tutorial:
http://blog-en.openalfa. com/how-to-to-interactive-maps-to-web-site/
条例调查提供的形状文件具有不同的详细程度.听起来您只需要转换european_region_region.shp
形状文件.
The shape files supplied by the Ordinance Survey have different levels of detail. It sounds like you'd just need to convert the european_region_region.shp
shape file.
ogr2ogr -f GeoJSON european_region_region.json european_region_region.shp
别忘了从北向/东向转换为纬度/长,如果您想使用Leaflet,Google Maps等
don't forget to convert from Northing/Easting to Lat/Long if you want to work with Leaflet, Google Maps, etc
ogr2ogr -t_srs WGS84 -f GeoJSON european_region_region.json european_region_region.shp
条例调查有一项许可政策,您需要遵守该政策:
The Ordinance Survey have a licensing policy that you'll need to comply with:
https://www.ordnancesurvey.co.uk/oswebsite/docs/licences/os-opendata-licence.pdf
这篇关于在哪里可以找到GeoJSON格式的英国区域地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!