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

Germán Carrillo carrillo.german at gmail.com
Wed Nov 29 06:25:03 PST 2017


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].


Regards,

Germán
-----------
[1] https://issues.qgis.org/issues/17585
[2] https://issues.qgis.org/issues/17586

2017-11-28 11:22 GMT-05:00 Germán Carrillo <carrillo.german at gmail.com>:

> Hi devs,
>
>
> do you know why this polyline
>
> >>> my_line = QgsGeometry().fromWkt('0 0, 963461.42999999970197678
> 1077875.79199999943375587, 1 1')
>
> and this point
>
> >>> my_point = QgsGeometry().fromWkt("Point (963461.430 1077875.792)")
>
> don't intersect?
>
> >>> my_line.intersects(my_point) # returns False
>
>
> I'm having such issue with points and a line captured using snapping
> (vertex mode, 9 pixels of tolerance).
>
>
> I'm using QGIS v2.99.0-master (4f9e2a5
> <https://github.com/qgis/QGIS/commit/4f9e2a5>) running against GEOS
> 3.5.1-CAPI-1.9.1 r4246.
>
>
> Thanks in advance,
>
> Germán
>
> --
> -----------
>    |\__
> (:>__)(
>    |/
> Soluciones Geoinformáticas Libres
> http://geotux.tuxfamily.org/
> http://twitter.com/GeoTux2
> http://about.me/germancarrillo
>
> <http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo>
>



-- 
-----------
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
http://about.me/germancarrillo

<http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171129/c60d0479/attachment.html>


More information about the QGIS-Developer mailing list