<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi!<div><br></div><div>I installed qgis 2.6.0 and am trying to set drawing style using python console through this code:</div><div><br></div><div><pre class="lang-py prettyprint prettyprinted" style="margin-top: 0px; margin-bottom: 10px; padding: 5px; border: 0px; font-size: 12px; vertical-align: baseline; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: rgb(57, 51, 24); word-wrap: normal; line-height: 18px; background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: rgb(34, 34, 34); white-space: inherit;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(0, 0, 0);">rlayer</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(20, 86, 128);">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(0, 0, 0);">setDrawingStyle</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(20, 86, 128);">(</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(43, 145, 175);">QgsRaster</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(20, 86, 128);">.</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(43, 145, 175);">SingleBandPseudoColor</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(20, 86, 128);">)</span></code></pre><pre class="lang-py prettyprint prettyprinted" style="margin-top: 0px; margin-bottom: 10px; padding: 5px; border: 0px; font-size: 12px; vertical-align: baseline; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: rgb(57, 51, 24); word-wrap: normal; line-height: 18px; background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: rgb(34, 34, 34); white-space: inherit;"><span class="pun" style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(20, 86, 128);">rlayer.setColorShadingAlgorithm(<span class="n" style="color: rgb(51, 51, 51); font-family: 'Andale Mono', 'Ubuntu Mono', 'Courier New', Courier, monospace; font-size: 13px; line-height: 1.2rem; white-space: pre-wrap;">QgsRasterLayer</span><span class="o" style="font-family: 'Andale Mono', 'Ubuntu Mono', 'Courier New', Courier, monospace; font-size: 13px; line-height: 1.2rem; white-space: pre-wrap; color: rgb(102, 102, 102);">.</span><span class="n" style="color: rgb(51, 51, 51); font-family: 'Andale Mono', 'Ubuntu Mono', 'Courier New', Courier, monospace; font-size: 13px; line-height: 1.2rem; white-space: pre-wrap;">ColorRampShader</span><br></span></code><span style="color: rgb(20, 86, 128); white-space: inherit;">)</span></pre></div><div>It is giving me error QgsRasterLayer' object has no attribute 'setColorShadingAlgorithm'</div><div>Looks like style API has changed. Can someone point to the new documentation. </div><div><br></div><div>Thanks</div><div>Shashank</div><div><br></div><div><br></div> </div></body>
</html>