processing: singlepart to multipart fails #23435
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
Milestone
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 15511
Affected QGIS version: master_2
Redmine category:processing/qgis
Assignee: Victor Olaya
take
https://raw.githubusercontent.com/qgis/QGIS/d0faca16a7e63e8bb0e9382c1b7746e1dfc67e2e/python/plugins/processing/tests/testdata/polys.gml
(make optionally a shape version of it) then try to do a "singlepart to multipart" operation using a column that has empty cells or that does not have records with the same value.
The tool returns an error
Invalid unique ID field
that is also misleading (because the operation really need a field that does not contain unique values).
Please notice also that not always (not with any input layer) the error surface when the attribute has empty cells, but seems to be always the case when the attribute does not have repeated values.
It also seems that has always been the case, at least in processing. In fact in ftools in such cases the operation stopped with
At least two features must have same attribute value!
Please choose another field...
for this reason I'm tagging this as regression, because ftools now is gone and the processing equivalent does not work the same way.
The text was updated successfully, but these errors were encountered: