[gdal-dev] Extracting (arbitrary?) overviews from ECW file

2013-09-04 Thread Markus Schneider
Dear list, I am new to programming with GDAL (and to the ECW format). Let me say thank you first, because my first experiences have been rather pleasant, even if my setup is relatively involved (thanks everybody for providing good documentation): - Ubuntu 12.04 (AMD64) - GDAL 1.10.1 (build from s

Re: [gdal-dev] Extracting (arbitrary?) overviews from ECW file

2013-09-04 Thread Frank Warmerdam
Markus, I believe the GDAL ECW driver will pass RasterIO() requests through to the ECW SDK to evaluate meaning that there is no constraint based on the advertized power-of-two overviews exposed from GDAL and no loss of quality. Best regards, Frank On Wed, Sep 4, 2013 at 6:52 AM, Markus Schneide

Re: [gdal-dev] Extracting (arbitrary?) overviews from ECW file

2013-09-05 Thread Markus Schneider
Frank, thanks for your reply. Could you (or somebody else) give me a few more details how to get hold of a raster region with a resolution that is not defined by an overview? Currently, I am able to extract regions from an overview using the following steps (in Java): ... Dataset dataset = gda

Re: [gdal-dev] Extracting (arbitrary?) overviews from ECW file

2013-09-10 Thread Markus Schneider
I believe I learned how to do this, so to answer my own question: Some of the Band.ReadRaster(...) methods allow to explictly specify the buffer width and height, e.g. [1]. This allows to extract resolutions that differs from the original image (and the overviews). Best regards, Markus [1] http:

Re: [gdal-dev] Extracting (arbitrary?) overviews from ECW file

2013-09-10 Thread Markus Schneider
There's one question remaining: Will the mentioned methods automatically select the best-matching overview, or do I have to do this myselft in order to achieve the best performance? This probably doesn't matter to ECW, but to other image formats with "real" overviews (such as GeoTIFF), right? Be

Re: [gdal-dev] Extracting (arbitrary?) overviews from ECW file

2013-09-10 Thread Markus Schneider
Ok, I just tried it out with an example GeoTIFF, and the mentioned methods seem to benefit from overviews in the file, so it seems to automatically do the right thing. Best regards, Markus Am 10.09.2013 11:20, schrieb Markus Schneider: > There's one question remaining: > > Will the mentioned met