A really quick example of getting geoJSON to display using D3
This repo is part of the From Shapefile to geoJSON post.
coffee/vis.coffee for the implementation.
Pick your poison!
You can start up a local webserver by using python’s simple server:
python -m SimpleHTTPServer 3000
thin in ruby
thin start # might have to run 'bundle install' first
Now go to http://0.0.0.0:3000
and you have a basic visualization
OR – I’ve been using node’s http-server as of late, which works just as well.
You need to have it installed:
npm install -g http-server
Then you just run http-server in the root directory of your site:
Now go to http://0.0.0.0:8080
Automatically figuring out the boundaries and scale of the projection comes from another Bostock example .