Bug report #12635
QgsRasterLayer.setDrawingStyle string version is in the bindings instead of the enum version
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20750|
In SIP bindings there is the QString version of the overloaded setDrawingStyle:
void setDrawingStyle( const QString & theDrawingStyleQString );
The pyqgis cookbook examples refer to the enum version:
is this intentional?
Do we have to fix the cookbook or ths SIP bindings?
Maybe related but the cookbook still mentions
which is not available anymore, additionally it seems that there is not a way to get the ENUM from the renderer, all I can get is a lowercase string such as:
#2 Updated by Martin Dobias over 4 years ago
The setDrawingStyle() method is completely obsolete. I have also updated the cookbook: https://github.com/qgis/QGIS-Documentation/commit/052ff6cce5eb3d48a6fc65f0d7662819a2da30a6