Thank you Ludwig! > Regarding your SRS questions you need to be aware that if you use different > SRS for different tables that unless you reproject to a common one distance > computations make no sense.
So I guess I have to use the default srid in both models. Right? If I set the default srid, is the following code correct? qs = Places.objects.filter(location__distance_lte=(pnt, D(km=500))) or qs = Places.objects.filter(location__distance_lte=(pnt, 500000) > There are routines in Postgis add-ons that will compute a great-circle > distance, > which I guess you are after. Do you know where can I find an example? I suppose you mean distance_sphere, but as I'm new to all this geographic stuff I have no idea how to use it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---