This repository provides a convenient mechanism for generating TopoJSON files from the National Atlas one million-scale dataset and U.S. Census Bureau shapefiles.
airports![]() |
amtrak![]() |
cbsa![]() |
coast![]() |
congress![]() |
counties![]() |
ferries![]() |
nation![]() |
ports![]() |
railroads![]() |
roads![]() |
states![]() |
streams![]() |
waterbodies![]() |
zipcodes![]() |
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 gdalThen, clone this repository and install its dependencies:
git clone https://github.com/mbostock/us-atlas.git
cd us-atlas
npm installIf the installation of node-canvas fails for you, try
PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig npm install canvasOr, 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.
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!














