<div dir="ltr"><div><div><div><div>No this is not a localization problem. I just tested this.<br><br></div>Raster calculator makes expressions with ',' invalid. At least, on my machine (Mint 14)<br><br></div>This is the output of my locales:<br><br>LANG=en_US.UTF-8<br>LANGUAGE=<br>LC_CTYPE="en_US.UTF-8"<br>LC_NUMERIC=pt_BR.UTF-8<br>LC_TIME="en_US.UTF-8"<br>LC_COLLATE="en_US.UTF-8"<br>LC_MONETARY=pt_BR.UTF-8<br>LC_MESSAGES="en_US.UTF-8"<br>LC_PAPER=pt_BR.UTF-8<br>LC_NAME=pt_BR.UTF-8<br>LC_ADDRESS=pt_BR.UTF-8<br>LC_TELEPHONE=pt_BR.UTF-8<br>LC_MEASUREMENT=pt_BR.UTF-8<br>LC_IDENTIFICATION=pt_BR.UTF-8<br>LC_ALL=<br><br></div>I just retried this. Grabbed a raster with floating point values and added 1.1 - the result is just an add by 1, without the 0.1. Giovanni was right about this, something is truncating these values in Raster Calculator to integers, and my input was 3.1, and the output 4.1 (added just 1, instead of 1.1) when it should be 4.2.<br><br></div>George<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 4:27 PM, Fernando M. Roxo da Motta <span dir="ltr"><<a href="mailto:petro@roxo.org" target="_blank">petro@roxo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 29 May 2015 10:20:05 +0200, Giacomo Fontanelli<br>
<<a href="mailto:giacomofontanelli76@gmail.com">giacomofontanelli76@gmail.com</a>> wrote:<br>
<br>
<br>
> I used to work with qgis 2.8.1 in Lubuntu and in windows7.<br>
><br>
> Each time I try to multiplicate a map for a number comprise between 0<br>
> and 1 (i.e. 0.1) I get a good results on windows OS, but I get a map<br>
> with only 0 and NaN on Linux.<br>
><br>
> Further, I get a correct result on Lubuntu if I divide by 10 instead<br>
> of multiplicate by 0.1.<br>
<br>
</span>  It looks very much like a localization problem.  I guess that with<br>
this name you are using a platform with Italian language.   I think<br>
that the standard there is the same I have in Brazil, that is the<br>
decimal separator is comma (,) instead of dot (.).   Try to use:<br>
<br>
<br>
   "band@map" * 0,1<br>
<br>
<br>
  Hope this helps.<br>
<span class="im HOEnZb"><br>
<br>
><br>
> Conclusion<br>
><br>
> "band@map" * 0.1 on windows = OK "band@map" * 0.1 on lubuntu = only 0<br>
> and NaN "band@map" / 10 on lubuntu = ok.<br>
><br>
> I use the same gdal version and I always get a correct Float32 map.<br>
><br>
> Canyou help me?<br>
><br>
> Thanx<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</span><span class="HOEnZb"><font color="#888888">  Roxo<br>
<br>
--<br>
---------------- Non luctari, ludare -------------------+ WYSIWYG<br>
Fernando M. Roxo da Motta <<a href="mailto:petro@roxo.org">petro@roxo.org</a>>              | Editor?<br>
Except where explicitly stated I speak on my own behalf.|  VI !!<br>
      ( Usuário Linux registrado #39505 )               | I see text,<br>
------------ Quis custodiet ipsos custodes?-------------+ I get text!<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">George R. C. Silva<br>Sigma Geosistemas LTDA<br><div>----------------------------<br><div><a href="http://www.sigmageosistemas.com.br/" target="_blank">http://www.sigmageosistemas.com.br/</a><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div></div></div></div></div></div></div>
</div>