[postgis-tickets] [PostGIS] #5096: ST_DWithin does not include a point within the radius

PostGIS trac at osgeo.org
Tue Jul 26 10:23:27 PDT 2022


#5096: ST_DWithin does not include a point within the radius
----------------------+---------------------------
  Reporter:  lybin    |      Owner:  pramsey
      Type:  defect   |     Status:  closed
  Priority:  medium   |  Milestone:  PostGIS 2.5.8
 Component:  postgis  |    Version:  2.5.x
Resolution:  invalid  |   Keywords:
----------------------+---------------------------
Changes (by pramsey):

 * status:  new => closed
 * resolution:   => invalid

Comment:

 This is user error, not a bug. ST_Distance against lonlats will return
 not-useful-in-real-world numbers. Your third column, a linear scaling of
 lonlats won't return correct answers outside of a very local area (and
 will have a directional bias built into it too). Use the geography type
 for exact answers on longlat inputs.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5096#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list