#27574: support geodetic distance calculation on MySQL 5.7+
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
| Fedoseev
Type: New feature | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tobias Krönke):
I would like to note, that `ST_Area` also works, although Django denies
its execution:
{{{
Region.objects.order_by(RawSQL('ST_Area(polygon)', params=[]))
<QuerySet [<Region: Region object (1)>, '...(remaining elements
truncated)...']>
}}}
in contrast that errors with contributed `Area`:
{{{
from django.contrib.gis.db.models.functions import Area
Region.objects.order_by(Area('polygon'))
...
django.db.utils.NotSupportedError: Area on geodetic coordinate systems not
supported.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27574#comment:3>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/068.23f20207bf3cb9f772fce620274c67fd%40djangoproject.com.