<div dir="ltr">Finally I've reached the point: GDAL's driver is opening the ASCII as Float64, consequently QGIS treats it this way.<div>I wonder why gdalinfo and gdal_translate treat it as Float32 instead....</div>
<div><br></div><div>giovanni</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-05 18:53 GMT+02:00 G. Allegri <span dir="ltr"><<a href="mailto:giohappy@gmail.com" target="_blank">giohappy@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The problem was simpler then it appeared: I didn't realize that QGIS output is Float64. <div>Yet I don't know why QGIS chosed to use this data type...</div>
<div><br></div><div>giovanni</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-07-05 17:56 GMT+02:00 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span>:<div><div class="h5">
<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le samedi 05 juillet 2014 17:25:48, G. Allegri a écrit :<br>
<div>> > QGIS is usually just calls to gdal, which makes this even more<br>
> > mysterious.<br>
><br>
> Yes, in the end it uses gdal, but it chooses the way blocks are read and<br>
> written.<br>
> If I remember correctly geotiff final sizes may depend on block ordering<br>
> and memory alignment.<br>
<br>
</div>In that instance, the target geotiff has a natural block dimension which is a<br>
raster line.<br>
If QGIS writes the geotiff by 256x256 blocks (this is just a guess. I've not<br>
verified), the same raster line will be written several times. As it is a<br>
compressed geotiff, the resulting raster line will be each time being bigger<br>
since the initial zeros will be replaced by actual values. And if the new size<br>
of the line is bigger than its previous size, the new line will be rewritten<br>
at the end of the file, losing the space previously occupied.<br>
<div><br>
> Maybe this is the case, QGIS raster provider not doing the best at this<br>
> level? Don't know, but this discussion is for the QGIS ml ;)<br>
><br>
> giovanni<br>
><br>
> > On 7/5/2014 9:09 AM, G. Allegri wrote:<br>
> > > I agree with you David, I'm surprised too.<br>
> > > Anyway, gdal_translate is run without compression options.<br>
> > > I've written to the QGIS devs (it was the software) to verify what's<br>
> > > happening with its raster file writer code...<br>
<br>
--<br>
</div>Geospatial professional services<br>
<a href="http://even.rouault.free.fr/services.html" target="_blank">http://even.rouault.free.fr/services.html</a><br>
</blockquote></div></div></div><br><br clear="all"><div class=""><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></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>