[Qgis-developer] (python) access to QgsHillshadeRenderer of raster layer ?

Andreas Plesch andreasplesch at gmail.com
Sat Apr 8 13:00:22 PDT 2017


I cannot figure how I can access the .altitude() and .azimuth() functions
of the QgsHillshadeRenderer implementing the QgsRasterRenderer of
a QgsRasterLayer.

I can get the QgsRasterRenderer via the .renderer() function of the
QgsRasterLayer and it return the correct 'hillshade' type via .type() but I
cannot get further.

Any hints ? Do i need to use .writeXML into a Document to get these values ?

-- 
Andreas Plesch
39 Barbara Rd.
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170408/5f252a59/attachment.html>


More information about the Qgis-developer mailing list