[PostGIS] #5989: ST_Distance error on curvepolgyon

PostGIS trac at osgeo.org
Thu Sep 18 14:41:40 PDT 2025


#5989: ST_Distance error on curvepolgyon
----------------------+---------------------------
  Reporter:  pramsey  |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  high     |  Milestone:  PostGIS 3.5.4
 Component:  postgis  |    Version:  3.2.x
Resolution:           |   Keywords:
----------------------+---------------------------
Comment (by pramsey):

 OK, finally down to the minimum case, should be about 0.5 distance, comes
 back as 0.
 {{{
 select st_distance(
   'POINT(-0.5 5)',
   'CURVEPOLYGON(COMPOUNDCURVE(CIRCULARSTRING(0 0, -1 5, 0 10), (0 10, -10
 10, -10 0, 0 0)))');
 }}}
 See attached image
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5989#comment:7>
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