[Qgis-developer] 'QgsColorRampShader' is not defined

Michele Mammini mamminim at yahoo.it
Mon Feb 1 03:38:26 EST 2010

Hi all,

i'm trying to work on Raster Layer and the palette configuration.

My problem is that when i try to define a new QgsColorRampShader the 
system says that the name is not defined.
Here the example from Python Console:
 >>> mc = iface.mapCanvas()
 >>> myRasterLayer = mc.currentLayer()
 >>> myRasterLayer.setRasterShaderFunction(None)
 >>> myRasterShaderFunction = QgsColorRampShader()
exceptions.NameError: name 'QgsColorRampShader' is not defined
Do someone know why this happen?

Thank you Michele.

Michele Mammini
Via dell'Arno, 54 - San Benedetto
Cascina (PISA)

Tel:            +39 050 747037
Cell:           +39 328 9039640

email:  <mailto:mamminim at yahoo.it>mamminim at yahoo.it
Skype:  mamminim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100201/e6f9ad4c/attachment.html

More information about the Qgis-developer mailing list