nens / threedi-schematisation-editor

QGIS tool for editing schematisations
0 stars 0 forks source link

Vector data importer: try to convert incompatible geometries to singlepart Point/Polygon/Linestring #222

Closed leendertvanwolfswinkel closed 1 month ago

leendertvanwolfswinkel commented 3 months ago

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?

leendertvanwolfswinkel commented 1 month ago

@ldebek this works so well!! I just imported 85 MultiCurve geometries and the tool didn't even blink