Skip to content

Commit 43c0450

Browse files
committed
phase 3: tigerweb layer 0 for tract polygons (was hitting acs annotated layer)
Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
1 parent 8a8dcd1 commit 43c0450

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/load-census.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ async function fetchACS(state, counties) {
9090
}
9191

9292
async function fetchTractGeoms(state, counties) {
93-
// TIGERweb's tract layer (id 3) supports filtering and GeoJSON output.
94-
// We page through 1,000 features at a time.
93+
// Layer 0 is the current "Census Tracts" boundary layer. Layers 3/6
94+
// exist but are ACS-annotated subsets with different fields.
9595
const out = [];
9696
for (const county of counties) {
9797
let offset = 0;
@@ -103,7 +103,7 @@ async function fetchTractGeoms(state, counties) {
103103
resultRecordCount: "1000",
104104
resultOffset: String(offset),
105105
});
106-
const url = `https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/3/query?${params}`;
106+
const url = `https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Tracts_Blocks/MapServer/0/query?${params}`;
107107
const resp = await fetch(url);
108108
if (!resp.ok)
109109
throw new Error(`TIGERweb ${state}/${county}: ${resp.status} ${resp.statusText}`);

0 commit comments

Comments
 (0)