<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,<div>I would like to report an issue on st_touches function.</div><div><br></div><div>The example from the documentation works fine:</div><div><div>=# select ST_Touches('LINESTRING(0 0, 10 0)'::geometry, 'POINT(0 0)'::geometry);</div><div> st_touches</div><div>------------</div><div> t</div></div><div><br></div><div>It works fine with real line-to-line geometries as well:</div><div><div>=# select <b>st_touches(a.geom,b.geom)</b> from st_geomfromewkt('SRID=4326;LINESTRING(28.9019278 53.8056134,28.901969 53.804671,28.90144 53.8017222)') as a (geom), st_geomfromewkt('SRID=4326;LINESTRING(28.896058 53.8047031,28.901969 53.804671)') as b (geom);</div><div> st_touches</div><div>------------</div><div> t</div></div><div><br></div><div>But it won't work in the following case:</div><div><div>=# select <b>st_touches(a.geom,st_endpoint(b.geom))</b> from st_geomfromewkt('SRID=4326;LINESTRING(28.9019278 53.8056134,28.901969 53.804671,28.90144 53.8017222)') as a (geom), st_geomfromewkt('SRID=4326;LINESTRING(28.896058 53.8047031,28.901969 53.804671)') as b (geom);</div><div> st_touches</div><div>------------</div><div> f</div></div><div><br></div><div>Cheers,</div><div>Eugene</div></div></div></div></div>