Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean columns trigger Python errors in Refactor Fields processing algorithm #25067

Closed
qgib opened this issue Sep 20, 2017 · 3 comments
Closed
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

Comments

@qgib
Copy link
Contributor

qgib commented Sep 20, 2017

Author Name: Andreas Neumann (@andreasneumann)
Original Redmine Issue: 17168
Affected QGIS version: master
Redmine category:processing/qgis
Assignee: Matthias Kuhn


When using the "Refactor Fields" processing algorithm and the attribute data contains columns of type boolean, one gets Python errors:

File /usr/local/share/qgis/python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py" line, in data
return self.fieldTypes[value]
KeyError: 1

Apparently,

(QVariant.Bool, "Boolean"),

has to be added to the fieldType OrderedDict.

@qgib
Copy link
Contributor Author

qgib commented Sep 21, 2017

Author Name: Giovanni Manghi (@gioman)


Does it work as expected on 2.18?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 21, 2017

Author Name: Andreas Neumann (@andreasneumann)


The boolean data type (on the QGIS level) is new in QGIS master. It didn't exist in 2.18x

So the issue is only on master.

@qgib
Copy link
Contributor Author

qgib commented Nov 16, 2017

Author Name: Alexander Bruy (@alexbruy)


Applied in changeset ee8ef42.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Nov 16, 2017
@qgib qgib added 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 labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant