<div dir="ltr"><div><div><div><div>Hi group,<br>I am trying to create a new line feature that extends to the first polygon geometry boundary. Now i can simply do an intersects <a href="http://www.qgis.org/en/docs/pyqgis_developer_cookbook/vector.html">function</a> 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.<br>
<br></div>for feature in layer.getFeatures():<br></div>    geom = feature.geometry()<br></div>    if geom.intersects(geom2): ## <- can i figure out the intersect point here<br></div>        ##do something <br><div><div>
<div><div><br></div><div>Or is there a function that might be available within shapely or pysal?<br></div><div>Cheers,<br></div><div>Bjorn<br></div></div></div></div></div>