Bug report #16380

Updated by Giovanni Manghi about 3 years ago


I use qgis-dev version on windows 7:

2.99.0-Master - 8b9e492

Using pyqgis, I get the following error when a try to create a multipolyline geometry from a list of list of QgsPoint :

test = qgis.core.QgsGeometry.fromMultiPolyline(multipoly)

TypeError: fromMultiPolyline(object): argument 1 has unexpected type 'list'

Also, when I do :

polygon = parentfet.geometry().asMultiPolygon()

qgis is dumping (the same code works on qgis 2.18)

Something is wrong with the pyqgis geometry class....