[Qgis-developer] color ramp shader in python
wonder.sk at gmail.com
Thu Jan 22 08:30:04 EST 2009
On Thu, Jan 22, 2009 at 2:03 PM, Barry Rowlingson
<b.rowlingson at lancaster.ac.uk> wrote:
> What I'm trying to do is control the mapping of values to colors -
> for example I need 0.0 to be green, 0.5 to be white, and 1.0 to be
> red, with smooth rgb transitions between. You can do this from the GUI
> by going to the properties/symbology dialog and setting up a custom
> colourmap. In the C++ API that uses QgsColorRampShader objects, which
> don't seem to be available in the python bindings.
does this mean that you just need to wrap QgsColorRampShader class and
you're done? If so, I can wrap it.
More information about the Qgis-developer