-
Notifications
You must be signed in to change notification settings - Fork 19
Welsh Community Reviews
Will de Montmollin edited this page Jul 13, 2026
·
5 revisions
Intro
Do the following locally, recording the final command for use on production:
- Check the shapefile in QGIS. We're getting these from the DBCC directly and so far they've had some issues. Some things to look out for:
-
invalid geometry: Use the
check validityalgorithm in the toolbox and, if necessary,fix geometries. - too many wards: Make sure that the file only contains electoral wards and doesn't have community wards. Some files have had a field name like "community" but the feature names and boundaries are for the electoral wards.
- boundaries haven't changed: Make sure that the wards in the file actually have the 'consquential changes' applied. I did this by comparing the the previous boundaries.
-
invalid geometry: Use the
- Set end date on the previous division set.
- Manually create a new division set in admin for the Community Review:
- Copy the divisions from the previous division set to the new one using
python manage.py copy_divisions <old_id> <new_id> --no-geographies - Upload the shapefile to the correct s3 bucket, e.g.
"s3://ee.boundary-reviews.production/swansea/The County of Swansea (Communities) Order 2026/" - Use
import_lgbceto try and import the boundaries, creating and uploading aname_map.json, if necessary, e.g.python manage.py import_lgbce -s 'pembrokeshire/The County of Pembrokeshire (Communities) Order 2026/PEMBRO_1_fixed.zip' PEM - Check that the boundaries look good by generating the pmtiles file using
update_pmtiles --divset-ids <new_id>.
If it looks good locally, the shapefile and optional name_map is uploaded to s3, and you've got the commands ready to go, then create repeat steps 2-7 on production.