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

[8472] migrate point field to GeoDjango to allow filtering by distance Part 2 #6116

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

goapunk
Copy link
Contributor

@goapunk goapunk commented Feb 19, 2025

Describe your changes
Migrate the point field of kiezradar, project, plans, bplans and extprojects to GeoDjango to allow things like filtering by distance, validate if a point is in the berlin polygon etc. This is quite a big change but I couldn't come up with any other good solution. The actual notification part is still missing though.

depends on liqd/adhocracy4#1775

I fixed some issues I found after deploying this on dev

Tasks

  • PR name contains story or task reference
  • Steps to recreate and test the changes
  • Documentation (docs and inline)
  • Tests (including n+1 and django_assert_num_queries where applicable)
  • Changelog

to allow filtering by distance on a database level.

- add restframework-gis
- add new mixins which handle conversion between geojson and GeoDjango
  fields
- use spatialite instead of sqlite to support gis/GeoDjango
@goapunk goapunk requested review from m4ra and vellip February 20, 2025 10:37
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.

1 participant