[postgis-tickets] [PostGIS] #4835: ST_Distance returning wrong results near the pole

PostGIS trac at osgeo.org
Thu Jun 30 12:10:36 PDT 2022


#4835: ST_Distance returning wrong results near the pole
-----------------------------+---------------------------
  Reporter:  matthiasheuser  |      Owner:  pramsey
      Type:  defect          |     Status:  new
  Priority:  high            |  Milestone:  PostGIS 3.3.0
 Component:  postgis         |    Version:  3.1.x
Resolution:                  |   Keywords:
-----------------------------+---------------------------
Comment (by pramsey):

 Incredibly, I found a fix for this issue that doesn't break the rest of
 the jenga tower. It's small so I'll back patch it as far as seems
 reasonable. Basically the point->edge distance routine projects a point
 onto the plane defined by the edge, and then asks if that point is between
 the edge-defining points. The code that was being used both tested for
 between-ness (good) and also for on-the-plane-ness (which since we had
 already constructed the point to be on-the-plane, we could take as read).
 Making the test more appropriate for our needs side-steps a
 precision/tolerance issue with the on-the-plane test.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4835#comment:13>
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