<div dir="ltr">Hi Nyall,<div><br></div><div>wow, that's great. I will try a nightly this week.</div><div><br></div><div>-Andreas</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 9, 2017 at 6:53 PM, Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10 April 2017 at 08:30, Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>> wrote:<br>
>> Date: Sat, 8 Apr 2017 13:51:43 -0700 (MST)<br>
>> From: Tom Chadwin <<a href="mailto:tom.chadwin@nnpa.org.uk">tom.chadwin@nnpa.org.uk</a>><br>
>><br>
>> They should be there:<br>
>><br>
>> <a href="https://qgis.org/api/classQgsHillshadeRenderer.html" rel="noreferrer" target="_blank">https://qgis.org/api/<wbr>classQgsHillshadeRenderer.html</a><br>
>><br>
>><br>
><br>
> Thanks. Yes, they are there. The problem is I cannot find a way to get to<br>
> the QgisHillshadeRenderer itself, from the QgsRasterLayer.<br>
> QgsRasterLayer.renderer() only provides QgsRasterRenderer. Anyways, the<br>
> .writeXML approach works well enough. [ It is a bit strange that the<br>
> altitude is named angle as an xml attribute. ]<br>
><br>
> Ideally, I would want to get the lightAzimuth and lightAltitude values from<br>
> the hillshaderendererwidget used in the layer properties gui . Is there a<br>
> way to get that from a processing python script (or plugin)? The idea is to<br>
> use existing values provided in the nice existing GUIs as much as possible.<br>
<br>
There was a missing sip cast for QgsHillshadeRenderer - without this<br>
in place you only get access to the common QgsRasterRenderer methods.<br>
<br>
It's fixed in <a href="https://github.com/qgis/QGIS/commit/8cf5860d72e6c7d4c7345b3a880020263549a93c" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/<wbr>commit/<wbr>8cf5860d72e6c7d4c7345b3a880020<wbr>263549a93c</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Nyall<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Andreas Plesch<br>39 Barbara Rd.<br>Waltham, MA 02453</div>
</div>