[postgis-tickets] [PostGIS] #4326: Circular strings distances are wrong

PostGIS trac at osgeo.org
Mon Jul 26 13:34:55 PDT 2021


#4326: Circular strings distances are wrong
----------------------+---------------------------
  Reporter:  komzpa   |      Owner:  strk
      Type:  defect   |     Status:  reopened
  Priority:  medium   |  Milestone:  PostGIS 2.5.3
 Component:  postgis  |    Version:  2.4.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by pramsey):

 The right answer pops out when it's just a point/line distance, so the
 problem must line in the containment test.
 {{{
 WITH data AS (
   SELECT
     'CIRCULARSTRING(7874821 8715927,8907663 8715927,8844683
 7750316,7937800 7750316,7874821 8715927)'::geometry AS a,
     'POINT(5433865 8243495)'::geometry AS b
 )
 SELECT ST_Distance(a, b), a && b AS bbox_intersect FROM data;
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4326#comment:8>
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