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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -