Paul Greyson | c090d14 | 2013-04-09 16:59:03 -0700 | [diff] [blame] | 1 | see: http://bost.ocks.org/mike/map/ |
2 | |||||
3 | brew install gdal | ||||
4 | npm install -g topojson | ||||
5 | |||||
6 | download: http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_admin_1_states_provinces_lakes_shp.zip | ||||
7 | |||||
8 | $ ogr2ogr -f GeoJSON -where "sr_adm0_a3 IN ('USA')" states.json ~/Desktop/ne_50m_admin_1_states_provinces_lakes_shp/ne_50m_admin_1_states_provinces_lakes_shp.shp | ||||
9 | $ topojson -o states.json world.json | ||||
10 |