I want to do ->Layers Panel -> select Layer -> go to properties -> change style -> changing angle from python .
Please suggest required python api.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
I solved the problem this way:
mapcanvas = iface.mapCanvas() n = mapcanvas.layerCount() layers = [mapcanvas.layer(i) for i in range(n)] symbols = layers.rendererV2().symbols() sym = symbols sym.setAngle(theta) # theta is rotate the symbol dynamically layers.triggerRepaint()