Skip to main content
100%

Grid Sampling on Census Tracts - Brute Force

✓ Published1🌍 Public
CCurran Kelleher
Last edited May 8, 2024
Created on May 7, 2024

This example demonstrates a brute-force approach to sampling points from a set of New York City census tracts, visualizing them as a uniform grid of circles that appear only over land. The map uses an orthographic projection, and the code iterates through every grid cell, testing each one for land inclusion by checking if it falls within any census tract polygon using `d3.geoContains`. The base map is drawn with `d3.geoPath`, and the census tract data comes from a Gist containing processed TIGER/Line shapefiles.

AI-generated description
MIT Licensed

Similar vizzes