Radim, the round() you added in qgsgdalprovider causes problems for me on VC++ (<a href="http://trac.osgeo.org/qgis/browser/trunk/qgis/src/providers/gdal/qgsgdalprovider.cpp#L664">http://trac.osgeo.org/qgis/browser/trunk/qgis/src/providers/gdal/qgsgdalprovider.cpp#L664</a>).<div>
<br></div><div>Should we add something like:</div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "><font color="#0000ff" size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">#define</font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "><font size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> round(dbl) dbl &gt;= 0.0 ? (</font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "><font color="#0000ff" size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">int</font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "><font size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">)(dbl + 0.5) : ((dbl - (<font color="#0000ff" size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">double</font>)(</font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "><font color="#0000ff" size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">int</font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "><font size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">)dbl) &lt;= -0.5 ? (</font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "><font color="#0000ff" size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">int</font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "><font size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">)dbl : (</font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "><font color="#0000ff" size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">int</font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; "><font size="2" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-weight: inherit; font-style: inherit; font-family: inherit; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">)(dbl - 0.5))</font></span></div>
<div><font class="Apple-style-span" color="#333333" face="&#39;Segoe UI&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, Helvetica, sans-serif"><span class="Apple-style-span" style="line-height: 16px;">?</span></font></div>
<div><br><div class="gmail_quote">2011/3/10 Radim Blazek <span dir="ltr">&lt;<a href="mailto:radim.blazek@gmail.com">radim.blazek@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I fact, I forgot to write a piece of logic, there is a shift.<br>
<font color="#888888"><br>
Radim<br>
</font><div><div></div><div class="h5"><br>
On Thu, Mar 10, 2011 at 8:13 PM, Radim Blazek &lt;<a href="mailto:radim.blazek@gmail.com">radim.blazek@gmail.com</a>&gt; wrote:<br>
&gt; I have changed how GDAL provider reads the data, it should be fast again.<br>
&gt;<br>
&gt;<br>
&gt; BUT! I am not absolutely sure that resampling is perfect and the<br>
&gt; nearest neighbour is alway nearest. I dont think however that anybody<br>
&gt; could notice that in normal work. I would appreciate however if<br>
&gt; somebody with fresh brain could check the alignment fiddling.<br>
&gt; <a href="http://trac.osgeo.org/qgis/browser/trunk/qgis/src/providers/gdal/qgsgdalprovider.cpp#L529" target="_blank">http://trac.osgeo.org/qgis/browser/trunk/qgis/src/providers/gdal/qgsgdalprovider.cpp#L529</a><br>
&gt;<br>
&gt; More pointers - more crashes expected!<br>
&gt;<br>
&gt; Radim<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Mar 9, 2011 at 8:30 PM, Giovanni Manghi<br>
&gt; &lt;<a href="mailto:giovanni.manghi@gmail.com">giovanni.manghi@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; On Tue, 2011-03-08 at 20:17 +0100, Radim Blazek wrote:<br>
&gt;&gt;&gt; Merged to trunk.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m testing the new raster capabilities of QGIS and I would like to have<br>
&gt;&gt; your opinion on a certain matter before eventually filing a ticket.<br>
&gt;&gt;<br>
&gt;&gt; I have a bunch of big tiff rasters (&gt; 1gb, sometimes &gt; 2gb), with<br>
&gt;&gt; internal tiles and/or overviews.<br>
&gt;&gt;<br>
&gt;&gt; What I&#39;m seeing is that now those rasters take quite a *lot* (making<br>
&gt;&gt; qgis not responsive for a while) to be rendered, before the merge it was<br>
&gt;&gt; all much quicker.<br>
&gt;&gt;<br>
&gt;&gt; As exemple:<br>
&gt;&gt;<br>
&gt;&gt; on QGIS 1.6 a 1.7gb geotiff with tiles and overviews opens in (more or<br>
&gt;&gt; less) 1 sec., in trunk now takes (more os less) 1 minute!<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; After the raster show in the canvas, also opening its properties take a<br>
&gt;&gt; long time. Before the merge was immediate.<br>
&gt;&gt;<br>
&gt;&gt; Zooming and panning it is also much slower than before the merge.<br>
&gt;&gt;<br>
&gt;&gt; Overall it seems like that tiles and overviews are ignored or not read.,<br>
&gt;&gt; but to me seems that also opening big tiffs (&gt; 1gb) without internal<br>
&gt;&gt; tiles and/or overviews takes a *lot* more than before the merge.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; anyone experiencing the same?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; cheers<br>
&gt;&gt;<br>
&gt;&gt; -- Giovanni --<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br></div>