Often, data is stored as MultiLinestring/MultiPolygon/MultiPoint, but has only one part in the Multi* geometry. If this is the case, please automatically convert to singlepart before the import
Another case is the (Multi)Curve* family of geometry types, For this, also try the same.
My experience is that the QGIS Processing Algorithm "Multipart to singlepart" fixes all these issues. So perhaps just check if NumGeometries==1 and than run that processing alg or its pyqgis api equivalent?
Often, data is stored as MultiLinestring/MultiPolygon/MultiPoint, but has only one part in the Multi* geometry. If this is the case, please automatically convert to singlepart before the import
Another case is the (Multi)Curve* family of geometry types, For this, also try the same.
My experience is that the QGIS Processing Algorithm "Multipart to singlepart" fixes all these issues. So perhaps just check if
NumGeometries==1
and than run that processing alg or its pyqgis api equivalent?