Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using PostGis and GeoDjango with a model having a Geography field I'm trying to exclude results where the location is 0,0. I get the error PostGIS geography does not support the "exact" lookup. The only thing I can think to do is exclude points that are 0 meters from 0,0:

.exclude(location__distance_lte=(Point(0, 0), D(m=1)))

Is there a better way?

share|improve this question
up vote 1 down vote accepted

try this:

.exclude(location__intersects=Point(0, 0))

The intersects spatial lookup is one of the four available on geography column types in GeoDjango.

In PostGIS, ST_Intersects natively supports geography column types and has a tolerance of about 0.00001 metres.

More info:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.