-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add census data maps #188
Conversation
* Command to import output areas and MSOA/LSOA * GraphQL query for choropleth data can be filtered by map bounds * Front-end automatically selects the tileset for the zoom level (census boundary type only)
ffbf906
to
73e860f
Compare
This is looking and working fairly well. Some things I'm noticing so far: Geometry resolution might be too poor right nowLSOA boundaries seem not to be aligned to MSOAs, but presumably they are aggregates. Are our Mapbox geometries too low resolution and can we beef them up? I wonder if we want to use geojson files for them as we did for OAs. The same might be sayable for MSOAs but I can't actually see because they're pretty small. I would say not to worry about the zoom levels for now though. Aggregation seems a bit skew-wiffThis might be a choropleth API related issue but these aggregations don't make sense to me: Looks like 024 and 024D are aggregating the same, though they are evidently different levels of geography. Is there an area querying issue here or something? Addressing that might help to reveal if numbers are adding/summing correctly. Dataset is https://www.nomisweb.co.uk/output/census/2021/census2021-ts013.zip |
179e508
to
bd11fc4
Compare
98436df
to
68a32a8
Compare
68a32a8
to
2a74185
Compare
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Description
(census boundary type only)
Motivation and Context
Required for https://linear.app/commonknowledge/project/hnh-ingest-and-visualise-a-uk-wide-mrp-dataset-d1c00221b2d5/issues
How Can It Be Tested?
https://www.data.gov.uk/dataset/4d4e021d-fe98-4a0e-88e2-3ead84538537/output-areas-december-2021-boundaries-ew-bgc-v21
and save asdata/output_areas.geojson
python manage.py import_areas
Caveats
fetchMore()
. This ultimately forced me to bring theuseDataByBoundary
hook up to a higher component level.AnalyticalAreaType
) needs to be known by multiple components. Before, this value was fixed and saved on the report config.GenericData
logic to save thePoint()
for all area types, as a generic solution for querying data within map bounds.PoliticalChoropleths
now to cache thefill
property of the choropleth layer. This reduces flicker but perhaps there is a more elegant way to do it.