hi all, using django 3.0.7, and have a (new) issue filtering on objects with point attributes within a distance of another point? my filter looks like this:
.filter(point__distance_lte=(dlPt, D(m=CloseRadius)))
i can build a query set using this filter, but when it invokes the postgres query it builds a (postgres) query that looks like this:
SELECT "objectName"."idx", "objectName"."rd", ... WHERE ST_DistanceSphere("objectName"."point", ST_GeomFromEWKB(\'\\001\\001\\000\\000 \\346\\020\\000\\000!\\345\\314\\033L\\214^\\300\\314\\262\'\'\\201\\315\\341B@\'::bytea)) <= 500.0)
and I get this error:
django.db.utils.ProgrammingError: function st_distancesphere(geometry, geometry) does not exist
dlPt is a Point:
type(dlPt)
>>> <class 'django.contrib.gis.geos.point.Point'>
and the objects being filtered have the same type `point`.
Thanks for any clues you might have. - Rik