[PostGIS] #5989: ST_Distance error on curvepolgyon
PostGIS
trac at osgeo.org
Thu Sep 18 11:34:43 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):
Cut back the CurvePolygon to just the one curve causing the problem
{{{
SELECT ST_Distance(
'POLYGON((25498577.925067347 6679764.376426865,25498577.31346041
6679760.722689815,25498576.736966014 6679757.06324837,25498576.19563731
6679753.398439955,25498575.68952422 6679749.72860249,25498575.218673404
6679746.054074359,25498574.783128276 6679742.375194377,25498574.382929
6679738.692301761,25498574.01811248 6679735.005736099,25498573.68871235
6679731.315837314, 25498573.394758984 6679727.622945643,
25498615.249195762 6679712.917382107,25498649.317714863
6679749.110582217,25498629.859234665 6679763.425791496,25498626.597285368
6679765.4664939325,25498616.53215853 6679754.940559511,25498616.475998268
6679754.899373339,25498616.40912013 6679754.879941631,25498616.33963356
6679754.884620618,25498577.925067347 6679764.376426865))'::geometry,
'CURVEPOLYGON(COMPOUNDCURVE(
CIRCULARSTRING(25498572.6156 6679718.3893,25498575.9546
6679753.1238,25498582.4167 6679787.4148,25498582.6547
6679788.418,25498582.8953 6679789.4206),
(25498582.8953 6679789.4206,25498679 6679789.4206,25498679.0
6679670.0,25498572.6156 6679718.3893)))'::geometry
) AS dist;
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5989#comment:4>
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