Skip to content

Commit

Permalink
Prepare for 1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Nov 3, 2016
1 parent 0650f0d commit d49b273
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 70 deletions.
69 changes: 2 additions & 67 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In a browser (using [d3-geo](https://github.com/d3/d3-geo) and Canvas), [bl.ocks
var context = d3.select("canvas").node().getContext("2d"),
path = d3.geoPath().context(context);
d3.json("https://d3js.org/us-10m.v0.json", function(error, us) {
d3.json("https://d3js.org/us-10m.v1.json", function(error, us) {
if (error) throw error;
context.beginPath();
Expand Down Expand Up @@ -48,7 +48,7 @@ canvas.toBuffer();

## File Reference

<a href="#us/10m.json" name="us/10m.json">#</a> <b>us/10m.json</b> [<>](https://d3js.org/us-10m.v0.json "Source")
<a href="#us/10m.json" name="us/10m.json">#</a> <b>us/10m.json</b> [<>](https://d3js.org/us-10m.v1.json "Source")

A [TopoJSON *topology*](https://github.com/topojson/topojson-specification/blob/master/README.md#21-topology-objects) containing three geometry collections: <i>counties</i>, <i>states</i>, and <i>nation</i>. The geometry is quantized, projected using [d3.geoAlbersUsa](https://github.com/d3/d3-geo/blob/master/README.md#geoAlbersUsa) to fit a 960×600 viewport, and simplified. This topology is derived from the Census Bureau’s [cartographic county boundaries](http://www.census.gov/geo/maps-data/data/cbf/cbf_counties.html), 2015 edition. The state boundaries are computed by [merging](https://github.com/topojson/topojson-client/blob/master/README.md#merge) counties, and the nation boundary is computed by merging states, ensuring a consistent topology.

Expand All @@ -63,68 +63,3 @@ A [TopoJSON *topology*](https://github.com/topojson/topojson-specification/blob/
<a href="#us/10m.json_nation" name="us/10m.json_nation">#</a> *us*.objects.<b>nation</b>

<img src="https://raw.githubusercontent.com/topojson/us-atlas/master/img/us-nation.png" width="480" height="300">

## FIPS Code Reference

| Abbreviation | Code |
|----|----|
| al | 01 |
| ak | 02 |
| az | 04 |
| ar | 05 |
| ca | 06 |
| co | 08 |
| ct | 09 |
| de | 10 |
| dc | 11 |
| fl | 12 |
| ga | 13 |
| hi | 15 |
| id | 16 |
| il | 17 |
| in | 18 |
| ia | 19 |
| ks | 20 |
| ky | 21 |
| la | 22 |
| me | 23 |
| md | 24 |
| ma | 25 |
| mi | 26 |
| mn | 27 |
| ms | 28 |
| mo | 29 |
| mt | 30 |
| ne | 31 |
| nv | 32 |
| nh | 33 |
| nj | 34 |
| nm | 35 |
| ny | 36 |
| nc | 37 |
| nd | 38 |
| oh | 39 |
| ok | 40 |
| or | 41 |
| pa | 42 |
| ri | 44 |
| sc | 45 |
| sd | 46 |
| tn | 47 |
| tx | 48 |
| ut | 49 |
| vt | 50 |
| va | 51 |
| wa | 53 |
| wv | 54 |
| wi | 55 |
| wy | 56 |
| as | 60 |
| fm | 64 |
| gu | 66 |
| mh | 68 |
| mp | 69 |
| pw | 70 |
| pr | 72 |
| um | 74 |
| vi | 78 |
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
},
"scripts": {
"prepublish": "bash prepublish",
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3.github.com && git pull && cp ../us-atlas/us/10m.json us-10m.v0.json && git add us-10m.v0.json && git commit -m \"us-atlas ${VERSION}\" && git push && cd -"
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cd ../d3.github.com && git pull && cp ../us-atlas/us/10m.json us-10m.v1.json && git add us-10m.v1.json && git commit -m \"us-atlas ${VERSION}\" && git push && cd -"
},
"devDependencies": {
"d3-dsv": "1",
"d3-geo-projection": "^1.1.0",
"ndjson-cli": "^0.0.5",
"shapefile": "0.5",
"topojson": "next",
"topojson": "2",
"topojson-client": "2",
"topojson-simplify": "0.1"
"topojson-simplify": "2"
}
}

0 comments on commit d49b273

Please sign in to comment.