Allow to create CompoundCurve, CurvePolygon, MultiCurve, MultiSurface memory layers #37435
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Currently, the New Temporary Scratch Layer allows to create, among the others, the following layer types:
but actually the following QgsWkbTypes layer are created respectively (see #5880 and #25491):
QGIS/src/gui/qgsnewmemorylayerdialog.cpp
Lines 62 to 66 in 5936249
While Polygon memory layers can store CurvePolygon geometries, some processing tools, as "Convert to curved geometries" (qgis:converttocurves) 9939142 (PR #35875), need specific layer types (CurvePolygon for qgis:converttocurves) to work properly.
This PR gives the users more choices and allow them to create true CompoundCurve, CurvePolygon, MultiCurve and MultiSurface layers:
like it is for the new geopackage layer dialog:
QGIS/src/gui/qgsnewgeopackagelayerdialog.cpp
Lines 72 to 76 in 5686837
QGIS/src/gui/qgsnewgeopackagelayerdialog.cpp
Lines 82 to 85 in 5686837
Fixes #37406