Rewrite ParameterSelection class to return parameter value instead of its index #16513
Labels
Feature Request
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Author Name: Alexander Bruy (@alexbruy)
Original Redmine Issue: 7573
Redmine category:processing/core
Assignee: Victor Olaya
This is rather proposal than new feature or bug.
Currently ParameterSelection accepted list of possible values and returns an index of the selected value. Maybe it makes sense to rewrite it and return value. Such approach has some advantages: using Python dict type it is very easy to show descriptive names to user and in same time pass to algorithms correct values with necessary type (string, int, double...)
If this will be accepted, issues described in #5689 will gone
The text was updated successfully, but these errors were encountered: