<html><head></head><body style="zoom: 0%;"><div dir="auto">You could also try st_disjoint or st_touches.<br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Get <!-- tmjah_g_1299e --><a href="http://www.bluemail.me/r?b=15818"><!-- tmjah_g_1299s -->BlueMail for Android<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s --> <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >On Feb 26, 2020, at 10:07 AM, Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca" target="_blank">pramsey@cleverelephant.ca</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue"><br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> On Feb 26, 2020, at 2:02 AM, Palmetzhofer Dietmar <Dietmar.Palmetzhofer@vorarlberg.at> wrote:<br> <br> I have a simple LINE-Geometry and a POINT, that I want to query, if it intersects the line.<br> The result ist, that ST_Intersects gives „FALSE“, and ST_Distance gives „0“. So, this is contradictory. An analysis with JTS shows, that there is a distance of 6.611191059663252E-13.<br> Should ST_Distance not also return this result?<br> <br></blockquote><br>They are different code lines, and have different tolerances. At some point “very small” becomes “zero”, and unfortunately these two lines have different places where that happens. If we patched up this case you’d just find a new one at E-20 :) the boundary between real math and discrete math exists and is manifest in the code.<br><br>P<br><hr><br>postgis-users mailing list<br>postgis-users@lists.osgeo.org<br><a href="https://lists.osgeo.org/mailman/listinfo/postgis-users">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></pre></blockquote></div></body></html>