<div dir="ltr">Hello to everyone, i'm new to this mailinglist!<div><br></div><div>I've ha question about QGIS 2.2.0 API.</div><div>I've developed a qgis plugin in python for version 1.8 and now i'm rewriting it for 2.2.0 version; i've encountered a problem:</div>
<div><br></div><div>i've defined a raster layer with QgsRasterLayer, eg.<br></div><div><br></div><div>rasterLayer = QgsRasterLayer(fileName, fileBaseName)</div><div><br></div><div>and i've defined a drawing style (with new rules of 2.2.0 APIs)</div>
<div><br></div><div>rasterLayer.setDrawingStyle('SingleBandPseudoColor')</div><div><br></div><div>So i need to define a color shading algorithm, in the same way that i used with 1.8 version</div><div><br></div><div>
rasterLayer.setColorShadingAlgorithm(QgsRasterLayer.PseudoColorShader)</div><div><br></div><div>but i see there's not </div><div><br></div><div>setColorShadingAlgorithm()</div><div><br></div><div><div class="gmail_extra">
<div>in new API....</div><div><br></div><div>Someone can help me to find a way to define it?</div><div><br></div><div>Thanks in advance</div><div><br></div><div>Nicola</div><div dir="ltr"><br>Web Site: <br><b><a style="color:rgb(255,0,0)" href="http://www.nicolastella.it" target="_blank">http://www.nicolastella.it</a><br>
<a style="color:rgb(255,0,0)" href="mailto:info@nicolastella.it" target="_blank">info@nicolastella.it</a></b><br><a style="color:rgb(255,0,0)" href="mailto:nicolastella1@gmail.com" target="_blank"><b>nicolastella1@gmail.com</b></a><br>
<br>"..Innovation has nothing to do with how many R&D dollars you have.It's not about money. It's about the people you have, how you're led, and how much you get it..." <br>Steve Jobs<br></div>
</div></div></div>