Re: [gdal-dev] GDALWarp on a specific overview of a dataset

2015-06-15 Thread Thomas Sevaldrud
Ah, great! That fixed it :-) Is there an official 1.11.3 release in the works? It's a bit of hassle for me to integrate it into our build system here, so if there's a new official version out soon I probably won't bother to integrate the current snapshot. Thanks so much for your help, Even! - Th

Re: [gdal-dev] GDALWarp on a specific overview of a dataset

2015-06-15 Thread Even Rouault
Le lundi 15 juin 2015 15:51:37, Thomas Sevaldrud a écrit : > When using the same image in GeoTIFF with overviews, it works correctly, > which may indicate something with the ECW drivers. I suppose it must be > something triggered by something weird I'm doing though, or else I would > think that oth

Re: [gdal-dev] GDALWarp on a specific overview of a dataset

2015-06-15 Thread Thomas Sevaldrud
When using the same image in GeoTIFF with overviews, it works correctly, which may indicate something with the ECW drivers. I suppose it must be something triggered by something weird I'm doing though, or else I would think that other people would have the same problem. The weird thing is that if

Re: [gdal-dev] GDALWarp on a specific overview of a dataset

2015-06-15 Thread Even Rouault
Thomas, 2 suggestions to help narrowing down the issue : - try gdalwarp of GDAL 2.0 that can select the most appropriate overview given the target resolution / raster size - try with the ECW translated as a GeoTIFF to check if it isn't an issue with the ECW driver itself. Even > Hi, > > I am

Re: [gdal-dev] GDALWarp on a specific overview of a dataset

2015-06-15 Thread Thomas Sevaldrud
Argh, I managed to send it while editing :-) Anway, input to this code section is the wanted overview level and the derived scale factors in X- and Y-direction. Output is the vrtDS dataset that is used in the GDAL Warp api later. Are there any obvious mistakes I've made here? I see that in GDAL

[gdal-dev] GDALWarp on a specific overview of a dataset

2015-06-15 Thread Thomas Sevaldrud
Hi, I am having a bit of trouble with warping a dataset (an ECW file) with multiple overviews. The base file is huge, so I am selecting the overview that matches closest to my output resolution and makes an in-memory VRT of this, consisting of the overview bands of the original image. This seems