[Qgis-developer] pyQgis QGS intersect

Bjorn Nyberg bjorn.burr.nyberg at gmail.com
Wed Oct 2 05:29:33 PDT 2013


Hi group,
I am trying to create a new line feature that extends to the first polygon
geometry boundary. Now i can simply do an intersects
function<http://www.qgis.org/en/docs/pyqgis_developer_cookbook/vector.html>available
within pyQGIS to determine if it intersects but is there a
function to determine where that line feature intersects a polygon (or
perhaps another line feature) as in an X,Y position? i.e.

for feature in layer.getFeatures():
    geom = feature.geometry()
    if geom.intersects(geom2): ## <- can i figure out the intersect point
here
        ##do something

Or is there a function that might be available within shapely or pysal?
Cheers,
Bjorn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131002/4d55255c/attachment.html>


More information about the Qgis-developer mailing list