<div><br>I am presently using -srcwin for copying AOI to a different file. does -projwin have any advantage over -srcwin?<br><br>Akhy<br> <br></div><div class="gmail_quote">On Wed, Mar 28, 2012 at 5:29 PM, Jay L. <span dir="ltr">&lt;<a href="mailto:jzl5325@psu.edu">jzl5325@psu.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Akshay, <div><br></div><div>1) An AOI can be created using the -projwin option in gdal_translate.  You can use that option when creating a new raster with a new tiles size.</div>

<div><br></div><div>2) Using the Python bindings it is possible to read a segment of a raster into memory without allocating memory.  I am unsure using another other language.</div><span class="HOEnZb"><font color="#888888">
<div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">Jay</font></span><div><div class="h5"><br><br><div class="gmail_quote">On Wed, Mar 28, 2012 at 5:16 AM, Mateusz Loskot <span dir="ltr">&lt;<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 28 March 2012 07:45, akshay gupta &lt;<a href="mailto:akshaygupta202@gmail.com" target="_blank">akshaygupta202@gmail.com</a>&gt; wrote:<br>
&gt; 2) When I read an image through ReadBlock() i had to allocate some memory<br>
&gt; and pass it in the function. Is there some way that i get the image data<br>
&gt; stored in GDALRasterBlock directly without passing my own allocated memory.<br>
<br>
</div><a href="http://www.gdal.org/classGDALRasterBlock.html#_details" target="_blank">http://www.gdal.org/classGDALRasterBlock.html#_details</a><br>
<br>
&quot;In normal situations applications do not interact directly<br>
with the GDALRasterBlock - instead it it utilized<br>
by the RasterIO() interfaces to implement caching&quot;<br>
<br>
Best regards,<br>
<span><font color="#888888">--<br>
Mateusz Loskot, <a href="http://mateusz.loskot.net" target="_blank">http://mateusz.loskot.net</a><br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br>