Skip to content
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 command to import postcode areas and code to display on choropleth #202

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

joaquimds
Copy link

@joaquimds joaquimds commented Jan 29, 2025

Required for visualising postcode-level data.

To run the command, python manage.py import_postcode_areas, you must first download the geojsonl files from MinIO: https://minio-console-2-c73y.onrender.com/browser/postcodes

I have added postcodes to the Census Output Area boundary type, as I wasn't sure where to group it. We have to group it with something, as displaying all the postcodes at once at low zoom levels will crash the browser.

Any recently imported data set should be visible at the postcode level, as each GenericData is given a point, which should be located within a postcode. However, in my experience a lot of dragging-around is necessary to actually find the postcode, and the areas jump around a little when switching from output area to postcode.

@commonknowledge-bot commonknowledge-bot deployed to feat/import-postcode-areas - meep-database PR #202 January 29, 2025 17:58 — with Render Active
Copy link

sentry-io bot commented Jan 29, 2025

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: hub/graphql/types/model_types.py

Function Unhandled Issue
choropleth_data_for_source GraphQLError: Field not found in data source /gra...
Event Count: 69
choropleth_data_for_source GraphQLError: Formula is invalid /graphql
Event Count: 57
choropleth_data_for_source GraphQLError: Cannot set a DataFrame without columns to the column second ...
Event Count: 23
choropleth_data_for_source GraphQLError: Incorrect configuration for choropleth /gra...
Event Count: 16
choropleth_data_for_source GraphQLError: ExternalDataSource matching query does not exist. ...
Event Count: 2

Did you find this useful? React with a 👍 or 👎

@commonknowledge-bot commonknowledge-bot temporarily deployed to feat/import-postcode-areas - meep-intelligence-hub-backend PR #202 January 29, 2025 17:59 — with Render Destroyed
@commonknowledge-bot commonknowledge-bot temporarily deployed to feat/import-postcode-areas - meep-intelligence-hub-backend PR #202 January 29, 2025 17:59 — with Render Destroyed
@commonknowledge-bot commonknowledge-bot temporarily deployed to feat/import-postcode-areas - meep-intelligence-hub-frontend PR #202 January 29, 2025 17:59 — with Render Destroyed
@commonknowledge-bot commonknowledge-bot had a problem deploying to feat/import-postcode-areas - meep-intelligence-hub-worker PR #202 January 29, 2025 17:59 — with Render Failure
@commonknowledge-bot commonknowledge-bot deployed to feat/import-postcode-areas - meep-intelligence-hub-worker PR #202 January 30, 2025 18:37 — with Render Active
@commonknowledge-bot commonknowledge-bot deployed to feat/import-postcode-areas - meep-intelligence-hub-worker PR #202 January 30, 2025 23:43 — with Render Active
@commonknowledge-bot commonknowledge-bot temporarily deployed to feat/import-postcode-areas - meep-intelligence-hub-backend PR #202 February 3, 2025 11:35 — with Render Destroyed
@commonknowledge-bot commonknowledge-bot temporarily deployed to feat/import-postcode-areas - meep-intelligence-hub-frontend PR #202 February 3, 2025 11:35 — with Render Destroyed
@commonknowledge-bot commonknowledge-bot deployed to feat/import-postcode-areas - meep-intelligence-hub-worker PR #202 February 3, 2025 11:35 — with Render Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants