[gdal-dev] Error loading ECW images

Even Rouault even.rouault at spatialys.com
Mon May 18 08:13:31 PDT 2015


Elena,

> Good Afternoon, we are trying the GDAL Library we have implemented the
> application which import/export  GeoTiff and Erdas Imagine Files and we
> haven´t any problem, but now we want to load a ecw image of 1Gb, we are
> using the file "ecwdataset" with the function "GDALDataset
> *ECWDataset::Open( GDALOpenInfo * poOpenInfo, int bIsJPEG2000 )"

Do you mean that you are directly calling this method explicitely ? This is 
not the recommanded way of using of GDAL. You'd rather use GDALOpen() and the 
public API, and not directly call internal methods of drivers.

> and on
> line 2497 in the  code below, happen an exception and the application is
> closed.
> 
> 
> 
> /* -------------------------------------------------------------------- */
> 
> /*      Create band information objects.                                */
> 
> /* -------------------------------------------------------------------- */
> 
>     for( i=0; i < poDS->psFileInfo->nBands; i++ )
> 
>         poDS->SetBand( i+1, new ECWRasterBand( poDS, i+1 ) );
> 
> 
> 
> We have tried with different Release:
> 
> 
> 
> release-1700-x64-gdal-1-11-mapserver-6-4.zip and we have installed de
> plugin for ecw
> 
> release-1800-x64.zip
> 
> 
> 
> and with different version of ECW library, 3.x and 5.x.

What happens if you open the file with gdalinfo in one of the above builds ?

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list