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?
相关问题
- Convert svg to geojson fails with ogr2ogr
- How to get coordinates of an svg?
- Changing color of SVG which was embedded using <
- Understanding svg's viewbox attribute
- Convert an inline SVG into a SVG file
相关文章
- Make marker-end same color as path?
- How to display unicode in SVG?
- Converting svg to png with inkscape command line f
- How to create an SVG Matrix without an SVG element
- rect collision detection d3js
- My background image get cut off at the bottom
- Unwanted namespaces on SVG markup when using XMLSe
- D3 grouped bar chart: How to rotate the text of x
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.
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-add-interactive-maps-to-a-web-site/
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.EDIT: don't forget to convert from Northing/Easting to Lat/Long if you want to work with Leaflet, Google Maps, etc
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
If you just want GeoJson files of UK boundaries (includes NI) you should just use - http://mapit.mysociety.org
Northern Ireland LGD (Council) boundaries - http://mapit.mysociety.org/areas/LGD.html
Here is the ONS Website Data, which you can downlaod in different formats
https://data.gov.uk/data/search?theme-primary=Mapping&res_format=GeoJSON
There's a useful github repository containing GeoJSON boundary data for UK, converted from ONS shapefiles https://github.com/martinjc/UK-GeoJSON
Northern Ireland is the exception to these due to the strict licensing of the government agency "public" information.
I can't tell whether you're looking for country-level or subcountry-level boundaries. If it's the former, then:
Some of the examples for d3.js use a GeoJSON file that contains all the countries in the world. You can find it here: https://github.com/mbostock/d3/blob/master/examples/data/world-countries.json.
D3.js is also an excellent framework for actually rendering this data in svg, so if you haven't already, you might wanna look into it. For example: http://bl.ocks.org/2206590.