d3/d3-geo-projection

geograticule

mbostock opened this issue · 1 comments

When creating projected TopoJSON, it’d be handy to generate and bake a graticule or sphere into the generated Topology. (It’s now possible to use echo '{"type": "Sphere"} | geoproject` so we don’t really need sphere creation.)

Moved from topojson/topojson#157.

This is pretty awesome…

cat \
  <(echo '{"type": "Sphere"}') \
  <(geograticule) \
  <(shp2json -n ../world-atlas/shp/ne_50m_admin_0_countries.shp | geostitch -n) | \
  geoproject -n 'd3.geoOrthographic().rotate([120, -40])' | \
  geo2svg -n > test.svg

screen shot 2016-10-31 at 11 03 21 pm