[PostGIS] #5989: ST_Distance error on CurvePolygon

PostGIS trac at osgeo.org
Wed Jan 21 05:28:38 PST 2026


#5989: ST_Distance error on CurvePolygon
----------------------+---------------------------
  Reporter:  pramsey  |      Owner:  pramsey
      Type:  defect   |     Status:  reopened
  Priority:  high     |  Milestone:  PostGIS 3.3.9
 Component:  postgis  |    Version:  3.3.x
Resolution:           |   Keywords:
----------------------+---------------------------
Changes (by tiiipponen):

 * resolution:  fixed =>
 * status:  closed => reopened

Comment:

 Continuation of ticket #5989 ST_Distance error on CurvePolygon

 The following query should give a distance of about 14.5 m, but the result
 is 0 m.
 There is also another, much more complicated example, but hopefully it
 will also be solved if this one is solved.

 SELECT
   ST_Distance(
 ST_GeomFromText('MULTISURFACE(CURVEPOLYGON(COMPOUNDCURVE(CIRCULARSTRING(25493681.3085
 6678739.6419,25493637.8256 6678776.2541,25493599.9716
 6678818.6604),(25493599.9716 6678818.6604,25493583.8816
 6678839.494,25493590.9591 6678844.9594,25493566.9698
 6678851.9051,25493526.5793 6678861.0985,25493487.3853
 6678868.2546,25493447.392 6678871.7846,25493429.5033
 6678876.6846,25493435.0147 6678857.4594,25493454.9254
 6678821.6192,25493452.4867 6678816.1292,25493402.3226
 6678828.2153,25493354.7526 6678837.8291,25493349.0217
 6678838.9873,25493310.914 6678843.6926,25493306.3784
 6678859.9295,25493294.1011 6678858.7864,25493169.9028
 6678847.2212,25493127.549 6678843.2773,25493057.8888
 6678834.6763,25493017.4547 6678826.7261,25492928.2395
 6678821.5524,25492909.1067 6678795.0681,25492946.9544
 6678794.8193,25492967.1292 6678794.6866,25493010.8878
 6678795.9163,25493111.5564 6678804.3109,25493113.4069
 6678799.5694,25493134.2375 6678806.0729),CIRCULARSTRING(25493134.2375
 6678806.0729,25493223.038 6678812.0533,25493311.4919
 6678802.1948,25493317.3589 6678800.9679,25493323.2107
 6678799.6707),(25493323.2107 6678799.6707,25493362.6615
 6678792.3924,25493364.6948 6678785.173,25493375.0512
 6678781.6008,25493404.9736 6678771.2798),CIRCULARSTRING(25493404.9736
 6678771.2798,25493486.8049 6678737.6728,25493566.8862
 6678700.0859),(25493566.8862 6678700.0859,25493574.903
 6678714.0761,25493600.2214 6678702.8803,25493654.1114
 6678670.2493,25493669.7219 6678659.2147,25493677.0288
 6678653.353,25493684.6468 6678648.4119,25493724.0447
 6678623.7638,25493800.1925 6678583.5847,25493805.6261
 6678586.1292,25493811.9258 6678582.3016,25493812.8413
 6678583.0522,25493846.581 6678558.6541,25493884.2653
 6678531.6272,25493900.9168 6678580.1258,25493830.7852
 6678630.9518,25493789.0848 6678661.2736,25493746.1612
 6678692.485,25493686.5413 6678735.8369,25493681.3085 6678739.6419))))',
 3879)
     ,ST_GeomFromText('POLYGON ((25492929.752797972
 6678919.124091367,25493008.675235115 6678876.783133076,25493098.02917443
 6678854.33589699,25493139.669701554 6678977.913508233,25493122.946292613
 6679011.427315322,25493050.53388224 6679068.791126598,25493140.33593199
 6679140.958135231,25492931.688606273 6679401.2946243705,25492799.289171
 6679295.949040241,25492651.5177725 6679115.144800108,25492929.752797972
 6678919.124091367))', 3879)
   ) AS dist
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5989#comment:25>
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