On Apr 22, 11:54 am, Justin Bronn <[EMAIL PROTECTED]> wrote: > (1) What geographic fields are in your model, what type are they > (e.g., PointField, etc.), and their SRID.
A plain PointField, e.g.: ``location = PointField()``. I believe GeoDjango defaults to WGS84 for the SRID. > (2) The geometry type of the parameter you're passing to `distance`, > and its SRID. A PointField from that same model containing lat/long pairs obtained from the Google geocoder. > My guess is that you're trying to calculate distances from a projected > coordinate system to a geodetic point that is outside the valid range > of your projection. That sounds likely. I've done a bit of Googling for explanations for the concepts and terms in use with GeoDjango, but I have a shaky understanding, at best. Do you know of any simple-language introductions to working with GIS? The best I've seen so far is the link below. So now that you know more about my setup, how would I find the distance between two users in a model? Thanks for your help so far, Justin. - whiteinge .. __: http://www.sharpgis.net/post/2007/05/Spatial-references2c-coordinate-systems2c-projections2c-datums2c-ellipsoids-e28093-confusing.aspx --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---