Re: [QGIS-Developer] Does Polyline.intersects(Point) work in QGIS master?

2017-11-30 Thread Germán Carrillo
Thank you Nyall, that makes sense. 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. Regards, Germán 2017-11-29 17:56 GMT

Re: [QGIS-Developer] Does Polyline.intersects(Point) work in QGIS master?

2017-11-29 Thread Nyall Dawson
On 29 November 2017 at 02:22, Germán Carrillo wrote: > > Hi devs, > > > do you know why this polyline > > >>> my_line = QgsGeometry().fromWkt('0 0, 963461.4299970197678 > >>> 1077875.7919943375587, 1 1') > > and this point > > >>> my_point = QgsGeometry().fromWkt("Point (963461.430 107787

Re: [QGIS-Developer] Does Polyline.intersects(Point) work in QGIS master?

2017-11-29 Thread Germán Carrillo
Moreover, the "Select by Location" tool in QGIS Processing is also not able to find such intersection (Point-Line or Line-Point) when using a PostGIS layer as the first parameter (*Select features from*). Not sure if they are related issues. I created a couple of issues reporting that: [1] and [2

[QGIS-Developer] Does Polyline.intersects(Point) work in QGIS master?

2017-11-28 Thread Germán Carrillo
Hi devs, do you know why this polyline >>> my_line = QgsGeometry().fromWkt('0 0, 963461.4299970197678 1077875.7919943375587, 1 1') and this point >>> my_point = QgsGeometry().fromWkt("Point (963461.430 1077875.792)") don't intersect? >>> my_line.intersects(my_point) # returns False