[Qgis-user] QGIS 2.2.0 API Question

Alex Mandel tech_dev at wildintellect.com
Mon Mar 24 10:53:16 PDT 2014


1. Please start a new thread for new questions.
2. API questions are better suited to the QGIS-developer mailing list
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Thanks,
Alex

On 03/24/2014 10:27 AM, Nicola Stella wrote:
> Hello to everyone, i'm new to this mailinglist!
> 
> I've ha question about QGIS 2.2.0 API.
> 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:
> 
> i've defined a raster layer with QgsRasterLayer, eg.
> 
> rasterLayer = QgsRasterLayer(fileName, fileBaseName)
> 
> and i've defined a drawing style (with new rules of 2.2.0 APIs)
> 
> rasterLayer.setDrawingStyle('SingleBandPseudoColor')
> 
> So i need to define a color shading algorithm, in the same way that i used
> with 1.8 version
> 
> rasterLayer.setColorShadingAlgorithm(QgsRasterLayer.PseudoColorShader)
> 
> but i see there's not
> 
> setColorShadingAlgorithm()
> 
> in new API....
> 
> Someone can help me to find a way to define it?
> 
> Thanks in advance
> 
> Nicola
> 
> Web Site:
> 
> *http://www.nicolastella.it
> <http://www.nicolastella.it>info at nicolastella.it <info at nicolastella.it>*
> *nicolastella1 at gmail.com* <nicolastella1 at gmail.com>
> 
> "..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..."
> Steve Jobs
> 
> 
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 




More information about the Qgis-user mailing list