#27448: GIS distance queries use deprecated ST_distance_sphere
-------------------------------------+-------------------------------------
Reporter: Christian von | Owner: Mjumbe
Roques | Poe
Type: | Status: assigned
Cleanup/optimization |
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: GIS distance | Triage Stage: Accepted
deprecated ST_distance_sphere |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mjumbe Poe):
I've started adding some tests at
https://github.com/mjumbewu/django/tree/postgis22_deprecated. I tried
handling the pre/post PostGIS 2.2 condition in there as well. It's not the
most elegant solution, and it's not easy to test, since the PostGIS
version is cached after it's first calculated (so I can't just
{{{override_settings}}}). I had to test it by just running the tests twice
against different postgis versions (which is why there are test in there
commented out). Can anyone else think of better tests for this?
--
Ticket URL: <https://code.djangoproject.com/ticket/27448#comment:4>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.294327e10211a486f3e1af23f90bee5e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.