Dissolve (native) algorithm: "Could not add feature with geometry type GeometryCollection..." #53392
Closed
2 tasks done
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
What is the bug or the crash?
When the output layer is a Temporary (memory) layer, then the processing algorithm "Dissolve" (native:dissolve) throws the error
Feature could not be written to Dissolved_43865acd_2535_446f_a5f1_1b9a152f67a2: Could not add feature with geometry type GeometryCollection to layer of type MultiPolygon
(of multi-type depending on the input layer type)Could not write feature into OUTPUT
and fails to complete the task in various circumstances:
if the input layer doesn't contain any feature (similar to issue report Error when making buffer from empty layer with 'Dissolve result' option checked #46396) or if the input layer contains only features with null geometry:
if the input layer contains only features with empty geometry:
if the input layer contains both features with valid geometry and features with null geometry:
if the input layer contains both features with valid geometry and features with empty geometry ( Dissolved: Could not add feature with geometry type GeometryCollection to layer of type MultiPolygon #53360):
Steps to reproduce the issue
For example,
for testing point 1 above: testlayer_1.zip
for testing point 2 above: testlayer_2.zip
for testing point 4 above: testlayer_4.zip (setting the field 'col1': doesn't fail; setting the field 'col2': fails)
Versions
QGIS 3.28.7 - QGIS 3.30.3 on Windows (OSGeo4W)
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: