Grid Sampling on Census Tracts - Brute Force
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 descriptionData for New York census tracts, downloaded from https://www.census.gov/cgi-bin/geo/shapefiles/index.php?year=2023&layergroup=Census+Tracts and processed using https://mapshaper.org/.
Data resides in Gist: New York City Census Tracts.
See also: