[Gdal-dev] gdal-translate problem with ECW sdk 3.3.1

James Browne James.Browne at liu.edu
Mon Oct 31 17:38:51 EST 2005


Hi all, 

I just downloaded the new ECW SDK and the CVS version of GDAL and I am now test them.

First, thanks to all who improved the SDK's configure script, it worked great. The gdal tools now work on ECW images without crashing (on a twin Xeon Linux).

One problem I discovered is using gdal-translate from ECW to other formats, at least when cutting sub-regions. So far I tried 2 different ECW files with GTiff, BMP, JPG and PNG.

The attached file shows the GTiff output superimposed over the original ECW.

ECW -> BMP and ECW -> GTiff: Produced the three color bands significantly off vertically. Red looks correct, green captures about one window height below the red, and the blue is cut from about 2 window heights below. GTiff produced normal progress output while BMP produced the following progress output.

gdal_translate -of BMP -projwin 1082400 161100 1086400 158100 /.../April1994_raw.ecw ~/GDAL/test94ecw1.bmp
Input file size is 102000, 46000
Computed -srcwin 31401 31901 4000 3000 from projected window.
0.ERROR 6: Dataset does not support the SetProjection() method.
ERROR 6: SetColorInterpretation() not supported for this dataset.
..10...20...30.ERROR 6: SetColorInterpretation() not supported for this dataset.
..40...50...60..ERROR 6: SetColorInterpretation() not supported for this dataset.
.70...80...90...100 - done.

ECW -> JPG produced occasional horizontal multi-colored streaks 1-4 pixels wide. Progress output normal.

ECW -> PNG failed to show progress output, although a file was produced. The files had more of the horizontal streaks than JPG.

gdal_translate -of PNG -projwin 1082400 161100 1086400 158100 /..../April1994_raw.ecw ~/GDAL/test94ecw1.png
Input file size is 102000, 46000
Computed -srcwin 31401 31901 4000 3000 from projected window.

     Thanks,
      Jim
  

 




More information about the Gdal-dev mailing list