<html><head><title>help with splitGeometry</title>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">Hi all,<br>
<br>
I'm trying to do a simple thing, use splitGeometry for two intersecting lines and though it returns 0, the list with output geometries is always empty.<br>
<br>
Here is my code (testable in Python-console and two selected intersecting lines, two points each):<br>
<br>
cl = qgis.utils.iface.mapCanvas().currentLayer()<br>
selfeats = cl.selectedFeatures()<br>
geom0 = QgsGeometry(selfeats[0].geometry())<br>
geom1 = QgsGeometry(selfeats[1].geometry())<br>
pnt0=geom0.vertexAt(0)<br>
pnt1=geom0.vertexAt(1)<br>
pnts=[]<br>
pnts.append(pnt0)<br>
pnts.append(pnt1)<br>
newlist=[]<br>
emptylist=[]<br>
geom1.splitGeometry(pnts,newlist,False,emptylist)<br>
<br>
Am I missing something obvious?<br>
<br>
Maxim&nbsp;</body>