#36417: Intersects result not matching 'not disjoint' result for geography field
--------------------------+-----------------------------------------
Reporter: jshirota | Type: Uncategorized
Status: new | Component: GIS
Version: 5.1 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------+-----------------------------------------
The following two queries don't always result in the same output.
{{{
.filter(my_geography_field__intersects=polygon)
.exclude(my_geography_field__disjoint=polygon)
}}}
''Also the intersects example above is significantly slower.''
It may be that ::geometry casting needs to be applied to a geography field
all the time (not just for operations supported for geography). Possibly
remove the second condition in the following if statement?
https://github.com/django/django/blob/b373721af0e5c3de0986977ac07e3ad55061ecbe/django/contrib/gis/db/backends/postgis/operations.py#L94
--
Ticket URL: <https://code.djangoproject.com/ticket/36417>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019707b8c2af-750fe447-390c-4bca-83a2-fa3253a9f84c-000000%40eu-central-1.amazonses.com.