#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 Christian von Roques):
Now that I spent some more time with the code, option 3 was not that hard
to implement.
More tests are still needed. However, mocking `spatial_version` won't do,
as my changes only call it once in `PostGISOperations.__init__`. However,
changing `settings.POSTGIS_VERSION` before instantiating
`PostGISOperations` should work.
--
Ticket URL: <https://code.djangoproject.com/ticket/27448#comment:6>
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.cfe98f12b7445634bb1b03ef6ef5f644%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.