[Qgis-developer] 'QgsColorRampShader' is not defined

Martin Dobias wonder.sk at gmail.com
Mon Feb 1 04:30:16 EST 2010


On Mon, Feb 1, 2010 at 9:38 AM, Michele Mammini <mamminim at yahoo.it> wrote:
> 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?

This class wasn't present in the PyQGIS. Fixed in svn trunk r12856.

Martin


More information about the Qgis-developer mailing list