<div dir="ltr">Hi Radim,<div>it seems so.</div><div>If verified that both gdalinfo and qgis.bin are pointing to the same libgdal:</div><div><br></div><div>>ldd /usr/bin/gdalinfo</div><div>libgdal.so.1 => /usr/lib/libgdal.so.1<br>

</div><div><br></div><div>>ldd /usr/bin/qgis.bin</div><div>libgdal.so.1 => /usr/lib/libgdal.so.1<br></div><div><br></div><div>Doing a debug sessione I've seen that Float64 is set by GDAL here: <a href="https://github.com/qgis/QGIS/blob/master/src/providers/gdal/qgsgdalprovider.cpp#L1076">https://github.com/qgis/QGIS/blob/master/src/providers/gdal/qgsgdalprovider.cpp#L1076</a></div>
<div><br></div><div>Here it is an excerpt of the original ASCII: <a href="https://dl.dropboxusercontent.com/u/13861666/FI_clipped.asc">https://dl.dropboxusercontent.com/u/13861666/FI_clipped.asc</a></div><div><br></div><div>
giovanni</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-08 10:16 GMT+02:00 Radim Blazek <span dir="ltr"><<a href="mailto:radim.blazek@gmail.com" target="_blank">radim.blazek@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Sat, Jul 5, 2014 at 8:17 PM, G. Allegri <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>> wrote:<br>

> Sorry for the buzz. It's not QGIS fault, it's GDAL itself which reads the<br>
> ASCII Grid as Float64, but I wonder why contrarily gdalinfo and<br>
> gdal_translate treats it as Float32...<br>
<br>
</div>Float64 in QGIS layer properties metadata Data Type and gdalinfo<br>
giving Float32 on the same file?<br>
<span class="HOEnZb"><font color="#888888"><br>
Radim<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> 2014-07-05 18:56 GMT+02:00 G. Allegri <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>>:<br>
><br>
>> I haven't spot tha exact point where this happens but QGIS exports<br>
>> Float64, even if the origin was Float32.<br>
>><br>
>> giovanni<br>
>><br>
>><br>
>> 2014-07-05 16:54 GMT+02:00 G. Allegri <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>>:<br>
>><br>
>>> Causally I hit the save as raster dialog, and I tried to export a raster<br>
>>> to layer (coming from an ASCII Grid source) to Geotiff, with no creation<br>
>>> options set.<br>
>>> The result was a file 3 times bigger then the original ASCII, and 5 times<br>
>>> bigger then the Geotiff created by gdal_translate.<br>
>>><br>
>>> gdalinfo on the files give same results (except statistics missing from<br>
>>> the one created by RasterFileWriter).<br>
>>> Does gdal_translate do some optimizations that RFW doesn't?<br>
>>> I wasn't aware that two Geotiffs, apparently with the same properties,<br>
>>> could be so different in size...<br>
>>><br>
>>> giovanni<br>
>>><br>
>>> --<br>
>>> Giovanni Allegri<br>
>>> <a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>
>>> Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a><br>
>>> blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
>>> GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Giovanni Allegri<br>
>> <a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>
>> Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a><br>
>> blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
>> GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Giovanni Allegri<br>
> <a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>
> Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a><br>
> blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
> GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><div>Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div>
<div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div>
</div>