pycensus.cadaster.countries.usa.nsi.loader¶
USACE National Structure Inventory: per-county GeoJSON from the public API (no key), cached per county, unified cadaster schema.
Points, not footprints: built_area_m2 is the reported total floor area (sqft), footprint_m2 the reported footprint. NSI also estimates the night / day population of each structure (population_night / population_day).
county(fips, cache_dir=None)
¶
National Structure Inventory buildings of one county (NSI API, no key), cached.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fips
|
str
|
5-digit county FIPS code. |
required |
cache_dir
|
Cache folder; |
None
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
The structures. |
state(state_fips, cache_dir=None)
¶
A whole state from NSI's bulk GeoPackage (one zip per state, no key): much faster than the per-county API for large areas. The bulk file has no footprint / height / housing-unit fields (they stay null).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state_fips
|
str
|
2-digit state FIPS code. |
required |
cache_dir
|
Cache folder; |
None
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
The structures. |
load(aoi, cache_dir=None, workers=4)
¶
Every county intersecting the AOI (TIGER counties from pycensus.census.countries.usa.geography).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
aoi
|
GeoDataFrame
|
Area of interest (GeoDataFrame). |
required |
cache_dir
|
Cache folder; |
None
|
|
workers
|
int
|
Parallel county downloads. |
4
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
The structures (unified schema). |