Nuts2json provides various reusable versions of Eurostat NUTS dataset as web formats such as GeoJSON and TopoJSON. It supports the design of statistical web maps of Eurostat data. In a way, it provides a blank map of geometries ready for use with your own data and colors.
For an example of such blank map, see HERE (the URL parameters can be changed).
For an example of thematic map, see this map showing population in Europe.
The JSON files are available in the folder json according to a predefined path pattern. For example, json/topojson/wm/600px/RG_lvl2.json is the path to a TopoJSON file of NUTS regions level 2 in projection web mercator, for a map size 600*600px.
The file path pattern is: /json/<FORMAT>/<PROJECTION>/<SIZE>/\NUTS_lvl<NUTS_LEVEL>.json
where:
- FORMAT is the file format. Currently, only TopoJSON is provided. GeoJSON format is to come.
- PROJECTION is the map projection. Currently, European projection LAEA (EPSG 3035) and Web Mercator (EPSG 3857) are provided.
- SIZE is the size of the map, in pixel. Currently, all maps are squared. The available sizes are 400, 600, 800, 1000 and 1200 pixels.
- NUTS_LEVEL is the NUTS level to be shown on the map, from national level (NUTS_LEVEL=0) to provincial level (NUTS_LEVEL=3).
Each file provides 4 feature types with the following properties:
NUTS regions (feature type nutsrg) have two properties:
- id: The NUTS identifier to be used to join Eurostat statistical figures and then assign colors to the regions.
- na: The geographical name of the region.
NUTS boundaries (feature type nutsbn) have the following properties:
- lvl: The NUTS level of the boundary, from 0 (national level) to 3 (provincial level).
- eu: T if the boundary separate two EU member states, F otherwise.
- efta: T if the boundary touches at least one EFTA country, F otherwise.
- cc: T if the boundary touches at least one Candidate Country, F otherwise.
- oth: T if the boundary touches a country wich is not EU, EFTA,CC. F otherwise. NB: The coastal boundaries are not included.
Non-european countries (feature type cntrg)
- cid: The country identifier (2 letters code).
- cna: The country name.
Non-european boundaries (feature type cntbn). Coastal boundaries are not included.
See this map on EurostatVisu project.
[TODO: describe simple examples, based on d3.]
These files are produced from the NUTS SHP files provided on Eurostat website, here. The input SHP files are in the shp folder. They are transformed using GDAL and, of course, TopoJSON libraries. The processes are automated in Bash files, which are also shared in this repository.
Feel free to ask support, fork the project or simply star it (it's always a pleasure).
The Eurostat NUTS dataset is copyrighted. See the Eurostat-GISCO website for more information.