#26685: Implement Spatialite PtDistWithin() in GeoDjango
-----------------------------+--------------------------------
Reporter: deed02392 | Owner: nobody
Type: New feature | Status: new
Component: GIS | Version: 1.9
Severity: Normal | Keywords: spatialite dwithin
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-----------------------------+--------------------------------
Spatialite has support for determining records which are within a
specified distance of a specified point, in a geometry field, even with a
geodetic coordinate system. This support is implemented using the
PtDistWithin() function. To the contrary, GIS reports an error when
attempting to perform this kind of lookup
(https://github.com/django/django/blob/master/django/contrib/gis/db/backends/spatialite/operations.py#L162).
So GeoDjango does not implement it, instead requiring the user to use
distance in degrees in these situations. Furthermore, the GeoDjango
documentation states that Spatialite does not support 'dwithin', but that
is simply because this function has not been mapped by the GIS project.
https://docs.djangoproject.com/en/1.9/ref/contrib/gis/geoquerysets/#std
:fieldlookup-dwithin
Signed-off-by: George Hafiz <george-hafiz.uk>
--
Ticket URL: <https://code.djangoproject.com/ticket/26685>
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/052.197f21b3b88e6756558e264b307af747%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.