[Gdal-dev] Question about writing ECWs

Frederic Claudel FClaudel at csir.co.za
Wed Aug 3 02:21:46 EDT 2005


Ken (&Frank)
just in case it is that previous problem about file size (which I doubt because the file seems small)
if your uncompressed image is larger than 500Mb, then you must specifically enable ECW compression for large files (and agree with the ERMapper licensing scheme for that case)

eg:
gdal_translate -of ECW -co TARGET=90 --config ECW_LARGE_OK YES PS_L7_mosaic_ERDAS.img PS_L7_mosaic_ECW.ecw

hope it helps,
Frederic

>>> fwarmerdam at gmail.com 02/08/2005 21:27 >>>
On 8/2/05, Ken Sewell <sewell at dramail.com> wrote:
> 
> I have GDAL 1.2.6 built with the Linux ECW SDK 3.1.25jan05.  Reading ECWs
> works, but writing them does not.  I can't find anything saying that linux
> can't write them, but is this the case?
> This is what I get:
> 
> gdal_translate -of ECW test.tif test.ecw
> Input file size is 5571, 4677
> 0.100 - done.
> ERROR 4: 'test.ecw' not recognised as a supported file format.

Ken,

I see you emailed through the old gdal-dev at xserve.flids.com.  Please
use the new address gdal-dev at lists.maptools.org.

I am a bit surprised at the way it fails.  I would suggestion:

 o There is some sort of "temp dir" environment variable used by
    the ECW SDK for write caching.  Perhaps TMP or TMPDIR or
   TEMP or something like that.  Try setting these names to point to
   /tmp.   In later versions I have taken to hacking in /tmp as the
   default.  

 o Try upgrading to a more recent version of gdal (ie. CVS snapshot)

 o Try upgrading to more recent ECW SDK source (ie 3.2beta1). 

 o Try applying some of the patches mentioned in the ECW SDK 
    forum. 

I retain high hopes that a 3.2beta2 SDK will be released soon that
resolves most of the problem. 

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com 
light and sound - activate the windows | http://pobox.com/~warmerdam 
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org 
http://lists.maptools.org/mailman/listinfo/gdal-dev





More information about the Gdal-dev mailing list