﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26685	Implement Spatialite PtDistWithin() in GeoDjango	deed02392	Kevan Swanberg	"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>"	New feature	closed	GIS	1.9	Normal	fixed	spatialite dwithin	kevswanberg@…	Accepted	1	0	0	1	0	0
