[Qgis-developer] Setting symbol levels

Jorge Gil jorge.gil at ucl.ac.uk
Fri Mar 28 08:38:18 PDT 2014


Hi,

Ok, I've finally figured it out.
Here it is for future reference, if anyone has this question again:

>>> renderer.setUsingSymbolLevels(True)
>>> symbols = renderer.symbols()
>>> symbols[0].symbolLayer(0).setRenderingPass(0)
>>> symbols[1].symbolLayer(0).setRenderingPass(1)
>>> symbols[2].symbolLayer(0).setRenderingPass(2)
...

Of course one should check how many layers each symbol has:
symbols[0].symbolLayerCount()

Cheers,
Jorge



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Setting-symbol-levels-tp5130331p5131885.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list