JacobWeinbren / 2022-LE

Local Elections 2022

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LE 2022

Sources

With many thanks to Election Maps UK, Britain Elects, Andrew Teale, Ballot Box, Electoral Calculus, The Ordnance Survey and The Boundary Commission

Full Extent Boundaries

Results

Process

  • python3 -m venv env

  • source env/bin/activate

  • Merge 2022 wards Boundaries

  • Parwise Clip wards with 2017/18 (as they are difference source)

  • Spatial join with districts

  • Now we are going to find the minimum area that encompasses both the old and new maps

    1. Make four regions (Wales, Scotland, England, London) from country region
    2. Remove attributes
  • Now we intersect with wards and export

    1. Pairwise intersect wards with the regions to produce wards_eng_2022, wards_wal_2022, wards_lon_2022, wards_sco_2022
    2. Pairwise intersect wards with the regions to produce wards_eng_2018, wards_wal_2017, wards_lon_2018, wards_sco_2017
    3. Export to Geojson
  • Cd into scripts and run boundary_changes.py

  • Remove extra attributes, simplify (use mapshaper ~1mb topojson)

About

Local Elections 2022


Languages

Language:Python 99.3%Language:HTML 0.7%