[QGIS-Developer] pyqgis:generate ColorRampItemList

Martin Landa landa.martin at gmail.com
Wed May 10 01:50:45 PDT 2017


Hi Martin,

2017-05-10 10:45 GMT+02:00 Martin Dobias <wonder.sk at gmail.com>:
> In QGIS master (will be 3.0) there is
> QgsSingleBandPseudoColorRenderer::createShader(...) method to do that,
> however in 2.x that code is not accessible through API... you could
> however still port the underlying classification code to your plugin:
> https://github.com/qgis/QGIS/blob/release-2_18/src/gui/raster/qgssinglebandpseudocolorrendererwidget.cpp#L345

thanks for your clarification, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the QGIS-Developer mailing list