[gdal-dev] Batch conversion ECW to TIFF [SEC=UNCLASSIFIED]

Pinner, Luke Luke.Pinner at environment.gov.au
Tue Jul 24 16:35:48 PDT 2012

See below for Ubuntu instructions (for other distros you could probably grab the libgdal-ecw-src deb unpack manually and compile).

#Get libecwj 3.3 (the old SDK), it's available from a number of sources. 
# If the link below doesn't work, google for "libecwj2-3.3"
wget -nd https://api.opensuse.org/public/source/home:jluce2:GEO/libecwj/libecwj2-3.3.tar.bz2
tar -xvjf libecwj2-3.3.tar.bz2
cd libecwj2-3.3
sudo make install

#Install the gdal ecw plugin source package and build it
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable && sudo apt-get update
sudo apt-get install libgdal-ecw-src build-essential
sudo gdal-ecw-build /usr/local
sudo ldconfig #this step is missing from UbuntuGIS tutorial

#Try it out
gdalinfo --formats|grep -i ecw
  ECW (rw): ERDAS Compressed Wavelets (SDK 3.x)
  JP2ECW (rw+v): ERDAS JPEG2000 (SDK 3.x)

#Then use gdal_translate to convert (assumes bash shell)
for f in *.ecw;do gdal_translate $f ${f%%.*}.tif;done


If you have received this transmission in error please notify us immediately by return e-mail and delete all copies. If this e-mail or any attachments have been sent to you in error, that error does not constitute waiver of any confidentiality, privilege or copyright in respect of information in the e-mail or attachments.

Please consider the environment before printing this email.

More information about the gdal-dev mailing list