chebee7i / us-atlas

Roll your own TopoJSON from the National Atlas and U.S. Census Bureau.

Home Page:http://bl.ocks.org/mbostock/5349951

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

U.S. Atlas TopoJSON

This repository provides a convenient mechanism for generating TopoJSON files from the National Atlas one million-scale dataset and U.S. Census Bureau shapefiles.

Visual Index

airports
amtrak
cbsa
coast
congress
counties
ferries
nation
ports
railroads
roads
states
streams
waterbodies
zipcodes

Installing via Homebrew

Before you can make any TopoJSON files, you’ll need to install Node.js and GDAL. Here’s how to do that using Homebrew on Mac OS X:

brew install node gdal

Then, clone this repository and install its dependencies:

git clone https://github.com/mbostock/us-atlas.git
cd us-atlas
npm install

If the installation of node-canvas fails for you, try

PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig npm install canvas

Or, add this to your ~/.bash_profile:

export PKG_CONFIG_PATH="/opt/X11/lib/pkgconfig"

If you want to install this software using an alternate method see the website for TopoJSON. I also recommend reading my tutorial, Let’s Make a Map.

Make Targets

Once you have everything installed, you can make various targets defined in the Makefile.

topo/us-10m.json

The U.S. county, state and nation boundaries simplified at 1:10,000,000 scale.

topo/us-congress-10m.json

The districts of the 113th U.S. Congress simplified at 1:10,000,000 scale.

There are partial targets defined for a large number of other boundary areas and geographic features. However, you’ll have to figure these out on your own for now. Sorry!

About

Roll your own TopoJSON from the National Atlas and U.S. Census Bureau.

http://bl.ocks.org/mbostock/5349951

License:Other