Re: GeoDjango annotate distance

2012-12-14 Thread Chris Cogdon
Just did a cursory read of the geodjango documentation for the first time...the querysets being returned from "all()" (or really, just objects) need to be GeoQuerySets which have a default "position" as part of their specification (I think), also such modules need to inherit from the geo versio

GeoDjango annotate distance

2012-12-12 Thread mikegolf
Hi, I've recently started learning GeoDjango and I'm a bit confused. There's a GeoQuerySet method "distance" which annotates each object with the distance to the given point, like that: pnt = 'POINT(coords... coords ...)' MyModel.objects.all().distance(pnt) but what field of the object does it