[PostGIS] #5989: ST_Distance error on curvepolgyon
PostGIS
trac at osgeo.org
Thu Sep 18 11:37:16 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):
Note that testing the lines the curve distance calculation works and the
distance between lines is 0.199. So the problem is probably in the
containment test, and the polygon is erroneously being considered to be
contained in the curvepolygon.
{{{
SELECT ST_Distance(
'MULTICURVE(
CIRCULARSTRING(25498687.296406467
6679794.584487298,25498670.728066746 6679772.920079741,25498652.7219
6679752.4351),
CIRCULARSTRING(25498584.874 6679680.3574,25498575.9211
6679678.4791,25498571.0593 6679686.228),
CIRCULARSTRING(25498572.6156 6679718.3893,25498575.9546
6679753.1238,25498582.4167 6679787.4148,25498582.6547
6679788.418,25498582.8953 6679789.4206)
)',
'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
);
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5989#comment:5>
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