[Gdal-dev] Question about writing ECWs

Frank Warmerdam fwarmerdam at gmail.com
Tue Aug 2 15:27:43 EDT 2005


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




More information about the Gdal-dev mailing list