Skip to content

Instantly share code, notes, and snippets.

@gka
Created February 9, 2012 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gka/1779771 to your computer and use it in GitHub Desktop.
Save gka/1779771 to your computer and use it in GitHub Desktop.
Map source for NUTS2 SVG map of Italy

This is how I created the SVG map for this interactive demo.

kartograph svg -c map.json -o italy.svg

The shapefiles are taken from eurostat and filtered using QGis by WHERE STAT_LEVL = 2 AND NUTS_ID LIKE 'IT%'.

{
"proj": {
"id": "satellite",
"up": 23,
"dist": 1.15
},
"layers": [{
"id": "regions",
"src": "italy-nuts2.shp",
"attributes": [{ "src": "NUTS_ID", "tgt": "nuts2" }]
}],
"bounds": {
"mode": "polygons",
"data": { "layer": "regions" }
},
"export": {
"height": 700
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment