The Census Bureau provides a 797M shapefile for national zip code tabulation areas. Simplified using TopoJSON (with -q 1e5 -s 3e-7
), the resulting file is only 7.2M, a reduction of 99.1%. The distribution of zip codes is a rough proxy for population density. Part of the U.S. Atlas project.
Last active
November 8, 2019 07:58
-
-
Save mbostock/4965422 to your computer and use it in GitHub Desktop.
Zip Codes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<img src="readme.png" width="960" height="500"> |
Do you have the topoJSON stored in a repository? I would like to use it for a visualization and need the link to the file. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used
https://github.com/mbostock/us-atlas
and ranmake shp/us/zipcodes-unmerged.shp
to get a shapefile for us zip code boundaries.When I ran this to get topojson...
topojson -o zips.json -q 1e5 -s 3e-7 shp/us/zipcodes-unmerged.shp
...I got this:
Any idea what's going on?