[GIS] Geoserver 2.6 with ECW support

ecwgeoserver

Did read "Geoserver 2.1.1 with ECW support"

but when I look at the link – http://docs.geoserver.org/stable/en/user/data/raster/gdal.html, it refers MSVC installation and other vague Window binary installs. Wish there was some clear documentation around in GeoServer.
Can anyone assist on the exact steps, including binaries to bring ECW support for GeoServer 2.6 ?

Best Answer

The following instructions are based on http:// docs.geoserver.org/2.6.1/user/data/raster/gdal.html

  • Geoserver: 2.6.1 (As Windows Service)
  • Windows OS: 7 x 64bit
  • Java: 7u67 32bit (According to instruction, using 32bit Java is required for Windows Service)

--

Installing GDAL extension

  1. Download http://sourceforge.net/projects/geoserver/files/GeoServer/2.6.1/extensions/geoserver-2.6.1-gdal-plugin.zip
  2. Extract the files to C:\Program Files (x86)\GeoServer 2.6.1\webapps\geoserver\WEB-INF\lib

--

Installing GDAL native librarie

Setup GDAL Data

  1. Download http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.10/native/gdal/gdal-data.zip
  2. Extract this archive to C:\Program Files\GDAL\gdal-data
  3. Create a GDAL_DATA environment variable to C:\Program File\GDAL\gdal-data

Setup GDAL

  1. Download http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.10/native/gdal/windows/MSVC2010/gdal-1.9.2-MSVC2010.zip
  2. Extract this archive to C:\Program Files (x86)\GDAL\gdal-1.9.2-MSVC2010
  3. Add C:\Program Files (x86)\GDAL\gdal-1.9.2-MSVC2010 to your PATH.
  4. Open command prompt, you should now be able to execute gdalinfo. If you can't there is something wrong with your PATH, or do a restart.

Update GeoServer Wrapper

  1. Open and edit C:\Program Files (x86)\GeoServer 2.6.1\wrapper\wrapper.conf.
  2. Add the following line wrapper.java.library.path.2=C:\Program Files (x86)\GDAL\gdal-1.9.2-MSVC2010

Install ECW Extension

  1. Download http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.10/native/gdal/windows/MSVC2010/gdal-19-1600-ecw.msi
  2. Install the package, which should installed to C:\Program Files (x86)\GDAL\gdalplugins
  3. Create a GDAL_DRIVER_PATH environment variable to C:\Program Files (x86)\GDAL\gdalplugins

Restart GeoServer

Related Question