Skip to main content
naming
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

postgis PostGIS via geodjangoGeoDjango: function st_distancesphereST_DistanceSphere(geometry, geometry) does not exist

I've been using postgisPostGIS via geodjangoGeoDjango (djangoDjango v3.0.7), happily until just now. i I have a query (djangoDjango .filter()) that looks like this:

.filter(point__distance_lte=(dlPt, D(m=CloseRadius)))

when it invokes the postgresPostgreSQL query iI get this error:

django.db.utils.ProgrammingError: function st_distancesphereST_DistanceSphere(geometry, geometry) does not exist

dlPt is indeed a Point, <class 'django.contrib.gis.geos.point.Point'>, and so are the point attributes in the objects being searched.

anyAny ideas what the issue might be?

postgis via geodjango: function st_distancesphere(geometry, geometry) does not exist

I've been using postgis via geodjango (django v3.0.7), happily until just now. i have a query (django .filter()) that looks like this:

.filter(point__distance_lte=(dlPt, D(m=CloseRadius)))

when it invokes the postgres query i get this error:

django.db.utils.ProgrammingError: function st_distancesphere(geometry, geometry) does not exist

dlPt is indeed a Point, <class 'django.contrib.gis.geos.point.Point'>, and so are the point attributes in the objects being searched.

any ideas what the issue might be?

PostGIS via GeoDjango: function ST_DistanceSphere(geometry, geometry) does not exist

I've been using PostGIS via GeoDjango (Django v3.0.7), happily until just now. I have a query (Django .filter()) that looks like this:

.filter(point__distance_lte=(dlPt, D(m=CloseRadius)))

when it invokes the PostgreSQL query I get this error:

django.db.utils.ProgrammingError: function ST_DistanceSphere(geometry, geometry) does not exist

dlPt is indeed a Point, <class 'django.contrib.gis.geos.point.Point'>, and so are the point attributes in the objects being searched.

Any ideas what the issue might be?

Source Link
rikb
  • 133
  • 4

postgis via geodjango: function st_distancesphere(geometry, geometry) does not exist

I've been using postgis via geodjango (django v3.0.7), happily until just now. i have a query (django .filter()) that looks like this:

.filter(point__distance_lte=(dlPt, D(m=CloseRadius)))

when it invokes the postgres query i get this error:

django.db.utils.ProgrammingError: function st_distancesphere(geometry, geometry) does not exist

dlPt is indeed a Point, <class 'django.contrib.gis.geos.point.Point'>, and so are the point attributes in the objects being searched.

any ideas what the issue might be?