[Qgis-developer] paletted color ramp for in QGis 1.8 with Python?

G. Allegri giohappy at gmail.com
Wed Feb 27 05:12:10 PST 2013


I've solved with my own implementation. A compact ColorPalette custom class
was enough to reproduce the logic behind
the QgsVectorColorBrewerColorRampV2 and the categories calculation.

giovanni

2013/2/27 G. Allegri <giohappy at gmail.com>

> I'm trying to emulate with Python in QGis 1.8, the routines as in the
> categorized renderer widge, to automate the creation of
> the QgsRendererCategoryV2 list to infalte in
> a QgsCategorizedSymbolRendererV2.
> I see that QgsVectorColorBrewerColorRampV2 is missing from SIP bindings.
> Is there any other mechanism to obtain a set of colors from a palette in
> Qgis 1.8 Python API?
>
> Thansk for the help,
> giovanni
>
> --
> Giovanni Allegri
> website: http://giovanniallegri.it
> GEO+ geomatica in Italia http://bit.ly/GEOplus
>



-- 
Giovanni Allegri
website: http://giovanniallegri.it
GEO+ geomatica in Italia http://bit.ly/GEOplus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130227/eccfb691/attachment.html>


More information about the Qgis-developer mailing list