Talk:ECW

From OpenStreetMap Wiki
Jump to: navigation, search

For the lazy ones (tested with Debian)

wget http://mirror.ovh.net/gentoo-distfiles/distfiles/libecwj2-3.3-2006-09-06.zip
unzip libecwj2-3.3-2006-09-06.zip
wget http://trac.osgeo.org/gdal/raw-attachment/ticket/3162/libecwj2-3.3-msvc90-fixes.patch
patch -p0 < libecwj2-3.3-msvc90-fixes.patch
wget http://trac.osgeo.org/gdal/raw-attachment/ticket/3366/libecwj2-3.3-NCSPhysicalMemorySize-Linux.patch
cd libecwj2-3.3/
patch -p0 < ../libecwj2-3.3-NCSPhysicalMemorySize-Linux.patch
(Also the patches from here and here should be applied. Without them, conversion from .ecw to geotiff failed for me.)
./configure
make
sudo checkinstall
cd ../

sudo apt-get build-dep libgdal1-1.6.0
sudo apt-get remove gdal-bin libgdal1-1.6.0
wget http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz
tar xzf gdal-1.9.0.tar.gz
cd gdal-1.9.0/
./configure --with-ecw=/usr/local --with-python
make
sudo checkinstall
cd ../

cd /usr/share/proj/
wget http://crs.bkg.bund.de/crseu/crs/descrtrans/BeTA/BETA2007.gsb