<div dir="ltr">Thank you Nyall, that makes sense. <div><br><div>It would be nice to have a tolerance parameter so that this very little discrepancies can also be found, but I guess one could snap one geometry to the other (with such little distance as tolerance) and then run intersects.</div><div><br></div><div>Regards, </div><div><br></div><div>Germán  </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-29 17:56 GMT-05:00 Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 29 November 2017 at 02:22, Germán Carrillo <<a href="mailto:carrillo.german@gmail.com">carrillo.german@gmail.com</a>> wrote:<br>
><br>
> Hi devs,<br>
><br>
><br>
> do you know why this polyline<br>
><br>
> >>> my_line = QgsGeometry().fromWkt('0 0, 963461.42999999970197678 1077875.79199999943375587, 1 1')<br>
><br>
> and this point<br>
><br>
> >>> my_point = QgsGeometry().fromWkt("Point (963461.430 1077875.792)")<br>
><br>
> don't intersect?<br>
><br>
> >>> my_line.intersects(my_point) # returns False<br>
><br>
<br>
</span>Because we use the GEOS library to test intersects, and it performs an<br>
exact intersection test. So 963461.42999999970197678<br>
1077875.79199999943375587 is not the same as 963461.430 1077875.792.<br>
<br>
This is the same behaviour in 2.x, and all other GEOS based projects<br>
(e.g. PostGIS gives the same result).<br>
<span class="HOEnZb"><font color="#888888"><br>
Nyall<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>-----------<br></div><div>   |\__  <br>(:>__)(<br>   |/    <br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/" target="_blank">http://geotux.tuxfamily.org/</a><br><a href="http://twitter.com/GeoTux2" target="_blank">http://twitter.com/GeoTux2</a></div><div><a href="http://about.me/germancarrillo" target="_blank">http://about.me/germancarrillo</a><br></div><div><div><br></div><div><a href="http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo" target="_blank"><img src="http://gis.stackexchange.com/users/flair/4972.png"></a></div></div></div></div></div></div></div>
</div>