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

Alert Polygon intersection coverage precision #49

Open
thenav56 opened this issue Apr 30, 2024 · 0 comments
Open

Alert Polygon intersection coverage precision #49

thenav56 opened this issue Apr 30, 2024 · 0 comments
Labels

Comments

@thenav56
Copy link
Member

Currently, alerts are tagged using alert-info polygons by checking the intersection with admin1 geo data.
The intersection returns all geoarea touched by the polygon. For polygon which represents a geoarea will also tag all geoarea surrounded by the geoarea.

possible_admin1s = Admin1.objects.filter(
country=alert.country,
# TODO: Check for performance issues
geometry__intersects=polygon,

We may need to optimize to select the required geoareas only.

NOTE: geoarea -> admin1 geoarea

@thenav56 thenav56 added enhancement New feature or request discussion future labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant