[Qgis-developer] color ramp shader in python

Peter Ersts ersts at amnh.org
Thu Jan 22 14:31:57 EST 2009

Martin Dobias wrote:
> On Thu, Jan 22, 2009 at 3:52 PM, Barry Rowlingson
> <b.rowlingson at lancaster.ac.uk> wrote:
>> 2009/1/22 Martin Dobias <wonder.sk at gmail.com>:
>>> does this mean that you just need to wrap QgsColorRampShader class and
>>> you're done? If so, I can wrap it.
>>  Not sure. It may also need the objects mentioned here:
>> http://doc.qgis.org/classQgsColorRampShader.html
>>  so I would be able to create a QgsColorRampShader and ten call
>> setColorRampItemList, which means I need ColorRampItem as well...
> It looks like a bunch of raster classes have been forgotten to be wrapped...

That would be my fault. I had them wrapped at one time but was having 
some troubles getting them to compile, so they got set aside, then time 
just slipped away. I am looking through my notes trying to recall why 
there was a problem, but I am not seeing it.

I think the color ramp shader class may need more accessors for it to 
work from  python, I am not thrilled with the use of the QLists but I 
kinda just expanded upon what was already there.


Peter J. Ersts, Project Specialist
American Museum of Natural History
Center for Biodiversity and Conservation
Central Park West at 79th Street
New York, New York 10024
Tel: Home Office (518)-632-4745 or NYC Office (212)-496-3488
Web: http://biodiversityinformatics.amnh.org
Web: http://cbc.amnh.org

Quantum GIS Raster Development Team. Visit http://www.qgis.org
to learn more about QGIS, a free and open source desktop GIS

Open Source,
...evolving through community cooperation to change the world bit by bit

More information about the Qgis-developer mailing list