<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 24, 2019 at 12:19 PM Raymond Nijssen <<a href="mailto:r.nijssen@terglobo.nl">r.nijssen@terglobo.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I've been using the raster calculator lately and bumped into some <br>
unexpected behaviour issues. They are hard to isolate but I will create <br>
issues<br>
<br>
One of the things is the creation of empty output grids, resulting in <br>
raster layers with a range as described earlier in this thread:<br>
<br>
([-1.79769e+308 to 1.79769e+308] instead of [0 1].<br></blockquote><div><br></div><div>Hi Raymond,</div><div><br></div><div>Working on it (I've been able to reproduce it), can you please file a ticket for me to reference in the PR?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Somehow this was fixed after changing the locale (!) from NL back to EN. <br></blockquote><div><br></div><div>This looks completely impossible to me: there is no locale involved in the formulas (and no translation of operators!).</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I was using a model that contained raster calculators and a python <br>
script running it.<br>
No clue what it could be, maybe parameter names being translated (I hope <br>
not!) or locale settings for decimal point/comma.<br>
<br>
Also, the names of the model parameter are like <br>
'qgis:rastercalculator_4:sub_calc_sqrt', still containing the <br>
'rastercalculator_4' part which can not be found or changed using the <br>
model editor.<br>
<br>
<br>
Besides, I'm wondering why very common functionality is missing in the <br>
raster calculator. I need abs() and max() functions and they don't <br>
exist. Or am I missing something?<br></blockquote><div><br></div><div>Yes, you missed the implementation :) <br></div><div><br></div><div>Nobody had already implemented it, but I've done that today.<br></div><br clear="all"></div><br>-- <br><div dir="ltr" class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>