Skip to content

Instantly share code, notes, and snippets.

Last active Feb 1, 2020
What would you like to do?
New York Block Groups
license: gpl-3.0

13,837 census block groups; 13,866 polygons. 2.1M TopoJSON, 620K gzipped. Made by customizing the makefile in the U.S. Atlas project:

topojson \
	-o ny.json \
	--projection 'd3.geo.mercator().center([-75.819, 42.795]).scale(6193).translate([480, 350]).precision(0)' \
	-q 1e5 \
	-s .5 \
	-- blockgroups=shp/ny/blockgroups.shp
<!DOCTYPE html>
<meta charset="utf-8">
path {
fill: none;
stroke: #000;
stroke-width: .5px;
stroke-linejoin: round;
stroke-linecap: round;
<script src="//"></script>
<script src="//"></script>
var width = 960,
height = 700;
var path = d3.geo.path()
var svg ="body").append("svg")
.attr("width", width)
.attr("height", height);
d3.json("ny.json", function(error, ny) {
if (error) throw error;
.attr("d", path);
});"height", height + "px");
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment