#25498: PostGIS Distance lookups use ST_Distance_Sphere() and not ST_Distance()
-------------------------------+------------------------------------
     Reporter:  iambibhas      |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Documentation  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by iambibhas):

 Replying to [comment:3 claudep]:
 > If the field is geodetic (latitude/longitude), `ST_Distance_Sphere` is
 used by default (with spheroid as an option). If the field has projected
 coordinates, `ST_Distance` is used by default.

 By `geodetic` do you mean a Point type geometry field using SRID 4326? In
 my example above, `centroid` is of type `geometry(Point,4326)`.

 Just trying to get a clear idea about it.

--
Ticket URL: <https://code.djangoproject.com/ticket/25498#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.f466083706ab7f09a86d14675ab7d577%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to