Create CMHC-neighbourhood crosswalk loader #59
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Build CMHC zone to neighbourhood bridge with area overlap weights using PostGIS.
File to Create
portfolio_app/toronto/loaders/cmhc_crosswalk.pyAlgorithm
dim_cmhc_zonedim_neighbourhoodST_Intersection(zone.geometry, neighbourhood.geometry)bridge_cmhc_neighbourhoodwith weightsSQL Example
Acceptance Criteria
Labels
Type/Feature,Priority/Low,Component/Backend,Component/Database,Tech/Python,Tech/PostgreSQLImplementation complete:
loaders/cmhc_crosswalk.pywith:build_cmhc_neighbourhood_crosswalk()- Uses PostGIS ST_Intersection/ST_Area for accurate geometric calculationsget_neighbourhood_weights_for_zone()- Query weights for a zonedisaggregate_zone_value()- Helper to disaggregate zone values to neighbourhoodsloaders/__init__.pywith exports