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>
<div><br></div><div>Jay<br><br><div class="gmail_quote">On Wed, Mar 28, 2012 at 5:16 AM, Mateusz Loskot <span dir="ltr"><<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 28 March 2012 07:45, akshay gupta <<a href="mailto:akshaygupta202@gmail.com">akshaygupta202@gmail.com</a>> wrote:<br>
> 2) When I read an image through ReadBlock() i had to allocate some memory<br>
> and pass it in the function. Is there some way that i get the image data<br>
> 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>
"In normal situations applications do not interact directly<br>
with the GDALRasterBlock - instead it it utilized<br>
by the RasterIO() interfaces to implement caching"<br>
<br>
Best regards,<br>
<span class="HOEnZb"><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>