Re: [gdal-dev] Overviews using GDAL

2012-12-26 Thread Dmitry Baryshnikov
Hi Hari, 26.12.2012 9:16, HariPrasad ?: Hi Dmitry I was inspecting various GDAL sources (http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts). I was bit confused how to implement RasterIO method. Which format to look for better idea. By my opinion the best format is geotiff Should i call

Re: [gdal-dev] Overviews using GDAL

2012-12-25 Thread HariPrasad
Hi Dmitry I was inspecting various GDAL sources (http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts). I was bit confused how to implement RasterIO method. Which format to look for better idea. Should i call IRasterIO() method in IReadBlock? /CPLErr RBDRasterBand::IReadBlock( int nBlockXOff, in

Re: [gdal-dev] Overviews using GDAL

2012-12-14 Thread Dmitry Baryshnikov
Hi, GDALDataset::RasterIO pass the request off to each band objects rasterio methods with appropriate arguments In GDALRasterBand::RasterIO (http://www.gdal.org/classGDALRasterBand.html#a5497e8d29e743ee9177202cb3f61c3c7) "Some formats may efficiently implement decimation into a buffer by r

Re: [gdal-dev] Overviews using GDAL

2012-12-13 Thread HariPrasad
Thanks Dmitry for your replay. I did that using IRasterIO(), but non of the IRasterIO() parameters has which overview its displaying. (i.e overview number). How can i know which overview it has displayed? I used GetOverview(int). I was able to get the overview numbers. But when i zoomed to maxi

Re: [gdal-dev] Overviews using GDAL

2012-12-11 Thread Dmitry Baryshnikov
Hi, When you use RasterIO (http://www.gdal.org/classGDALDataset.html#ae077c53268d2272eebed10b891a05743) GDAL automatically switch to right overview based on input parameters. I think ArcGIS do it the same way. Regards, Dmitry 11.12.2012 16:58, HariPrasad пишет: Iam beginner to GDAL. I hav

[gdal-dev] Overviews using GDAL

2012-12-11 Thread HariPrasad
Iam beginner to GDAL. I have an Image which has internal overviews in it. I am able to display each overview separately, but i want to dynamically select the corresponding overview when that image is zoomed in/out. Which method i need to use in GDAL to achieve this functionality. And how does Arc