Roll your own TopoJSON from the National Atlas one million-scale dataset.

U.S. Atlas TopoJSON

This repository provides a convenient mechanism for generating TopoJSON files from the National Atlas one million-scale dataset.

Before you can run make, you’ll need to install some needed software. Here’s how to do that using Homebrew on Mac OS X:

brew install node
brew install gdal

And then, from this repository’s root directory, install the dependencies:

npm install

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

Once you have everything installed, simply run:


This will generate a large number of TopoJSON files of varying size in the topo directory. As a by-product of producing these files, you’ll also download the one million-scale shapefiles directly from the National Atlas and convert them into GeoJSON and filter using ogr2ogr.

If you want to generate a custom map, I recommend modifying the Makefile. Or, just use the Makefile as a set of examples, and run the appropriate ogr2ogr and topojson commands from the terminal.