[Qgis-user] how to set style using python
shashank khare
skhare at hotmail.com
Fri Feb 13 01:51:54 PST 2015
Hi!
I installed qgis 2.6.0 and am trying to set drawing style using python console through this code:
rlayer.setDrawingStyle(QgsRaster.SingleBandPseudoColor)rlayer.setColorShadingAlgorithm(QgsRasterLayer.ColorRampShader
)It is giving me error QgsRasterLayer' object has no attribute 'setColorShadingAlgorithm'Looks like style API has changed. Can someone point to the new documentation.
ThanksShashank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150213/f1224531/attachment.html>
More information about the Qgis-user
mailing list