SVG/TopoJSON for world map with US states -
i'm using d3 create choropleth map of world. need svg or topojson file shows map of world @ country level state outlines us. ones i've found outdated files wikimedia commons large (from 1998 , ~18mb, see below).
can point me might find more recent (and smaller) file?
thanks!
outdated / large
http://commons.wikimedia.org/wiki/file:world98.svg http://commons.wikimedia.org/wiki/file:world98%2b.svg
if don't want find shapefile , use ogr2ogr , topojson convert shape topojson, try:
http://bl.ocks.org/mbostock/raw/4090846/world-50m.json
which taken from:
http://bl.ocks.org/mbostock/3946824
*edit:
i realized need states outlined in us. such, best bet find world shapefile , us-state shapefile , use ogr2ogr convert shape json like:
ogr2ogr -f geojson worldout.json worldin.shp then use topojson convert , combine geojson:
topojson -o combinedout.json -- woldout.json statesout.json
Comments
Post a Comment