Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guardian/world-map
Rough-and-ready geometry files for quickly rendering an SVG map of the world
https://github.com/guardian/world-map
interactive
Last synced: about 1 month ago
JSON representation
Rough-and-ready geometry files for quickly rendering an SVG map of the world
- Host: GitHub
- URL: https://github.com/guardian/world-map
- Owner: guardian
- Created: 2013-04-19T16:19:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-19T16:23:21.000Z (over 11 years ago)
- Last Synced: 2024-04-08T00:38:58.781Z (8 months ago)
- Topics: interactive
- Homepage:
- Size: 180 KB
- Stars: 14
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- stars - world-map - and-ready geometry files for quickly rendering an SVG map of the world | guardian | 16 | (Others)
- stars - world-map - and-ready geometry files for quickly rendering an SVG map of the world | guardian | 16 | (Others)
README
world-geometry
==============I keep needing this data, so rather than trawling through old project files and copying it each time, I'm putting it here.
## [geometry.json](https://raw.github.com/GuardianInteractive/world-map/master/geometry.json)
This file contains SVG path definitions for 221 countries, indexed by their World Bank alpha-3 code. It uses a Robinson projection (Guardian house style for world maps), with a nominal width of 1000 and a height of 507 (Robinson projections always have this ratio).
The original data is sourced from [Natural Earth](http://www.naturalearthdata.com/) - it is a composite of the 10m, 50m and 110m layers (it prefers 110m resolution, but falls back to 50m or 10m if a particular country does not exist at a courser resolution). The data has been compressed by eliminating sub-pixel detail below a certain threshold. This is ideal for most visualisations - it appears highly detailed when zoomed out, but is small enough to a) download quickly and b) allow smooth panning/zooming etc.
## [centroids.json](https://raw.github.com/GuardianInteractive/world-map/master/centroids.json)
This file contains hand-adjusted country centroids whose coordinates correspond to the projection in geometry.json.
## Contributing
If you (for example) find yourself needing the same thing but with ISO codes, or have a UK/Europe/whatever equivalent that you could share (though we'd need to change the name of this repo...) then don't be shy