I want to export a layer with holed geometries in it. But when I save my features to shapefile in QGIS 3 it creates a file with MultiPolygon
as geometry type. The fact is that a holed polygon isn't a multi-surfacic polygon and I want to export it as Polygon
only.
I tried to modify manually the WKT with geom_from_wkt()
with following formula :
geom_from_wkt( replace( replace( geom_to_wkt( $geometry ), 'MultiPolygon (', 'Polygon '), ')))', '))' ) )
With Geometry by expression
and the temporary layer created by this algorithm is correct (with Polygon
type) but when I save it to shapefile it puts MultiPolygon
back again.