<br><br><div class="gmail_quote">2009/8/12 Jorge Arévalo <span dir="ltr">&lt;<a href="mailto:jorge.arevalo@gmail.com">jorge.arevalo@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
&gt;&gt; I&#39;m afraid I have not quite followed the discussion of the IRasterIO<br>
&gt;&gt; implementation, but I find the above statement quite alarming. It is<br>
&gt;&gt; imperative that we *not* end up reading back all blocks if only a few<br>
&gt;&gt; are requested.  Imagine a 100GB image split up into blocks in a<br>
&gt;&gt; table.  If an application using GDAL is run and only needs a small<br>
&gt;&gt; area of the file it is important that the blocks not requested never<br>
&gt;&gt; be pulled from the DB.<br>
&gt;<br>
&gt; I can only second Frank&#39;s comment.<br>
&gt; IOW, general idea is to query minimum (sub)set of tiles requested,<br>
&gt; where request is based on spatial extent (i.e. geographic coordiantes)<br>
&gt; or extent within pixel space of a coverage (specified as range of rows<br>
&gt; and columns of a raster).<br>
&gt;<br>
<br>
</div>OK. Then, and correct me if I&#39;m wrong, the point is to query only the<br>
extent asked by the program using GDAL driver. Then, I should query<br>
only the blocks requested in, for example, the IReadBlock method, just<br>
as I did. But Tamas&#39; suggestion was to minimize the number of server&#39;s<br>
rounds implementing a kind of cache system at driver&#39;s level.<br>
</blockquote><div><br><br>I may have been misunderstood somewhere, but I&#39;ve never talked about the requirement to fetch all the data (the entire extent) of the raster data table.<br>We have been talking about fetching all the tiles requested by a single RasterIO call which tiles would definitely be requested by the subsequent IReadBlock calls if we were rely on the default RasterIO implementation. Just like what the WCS driver currently implements in DirectRasterIO to prevent from accessing the server for each tiles.<br>
<br>Best regards,<br><br>Tamas<br><br></div></div><br>