[Qgis-developer] Large raster (ecw) identify very long

Radim Blazek radim.blazek at gmail.com
Thu Aug 23 04:49:32 PDT 2012


On Wed, Aug 22, 2012 at 8:34 PM, Even Rouault
<even.rouault at mines-paris.org> wrote:
>> > I suppose your workaround in QGIS will be to read 1x2 pixel or something
>> > like that.
>>
>> Yes, I have used 2x2.
>
> Hum, I humbly suggest that the fix should be done in the ECW driver rather than
> in QGIS. The issue with the 2x2 workaround is that if other GDAL drivers have
> optimizations for the 1x1 pixel use case (which would be reasonable), they
> will be unused now.

Until it get fixed in GDAL we can use

  if ( GDALGetDriverShortName() == "ECW")

and once you fix that

  #if defined(GDAL_VERSION_NUM) && GDAL_VERSION_NUM < x.x
      if ( GDALGetDriverShortName() == "ECW")

Radim


More information about the Qgis-developer mailing list