[gdal-dev] Gdal translate ECW to TIF.

Even Rouault even.rouault at spatialys.com
Thu Aug 9 01:56:43 PDT 2018


On mercredi 8 août 2018 20:05:49 CEST Dmitriy T. wrote:
> I took the following steps:
> 
> 
> 1) Download http://download.osgeo.org/gdal/2.3.0/gdal230.zip
> 
> 2) Unzip to C:\gdal_ecw\gdal-2.3.0
> 
> 3) Download, unzip and install
> https://download.hexagongeospatial.com/downloads/ecw/erdas-ecw-jp2-sdk-v5-0
> to C:\Intergraph\ERDAS ECW JPEG 2000 SDK 5.0
> 
> 4) In C:\gdal_ecw\gdal-2.3.0\nmake.opt edit:
> 
> # Uncomment the following and update to enable ECW read support with the 5.0
> SDK
> #ECWDIR  =  "c:\Intergraph\ecwsdk5"
> #ECWFLAGS = -DECWSDK_VERSION=50 \
> #       -I$(ECWDIR)\include \
> #       -I$(ECWDIR)\include/NCSECW/api -I$(ECWDIR)\include/NCSECW/jp2 \
> #       -I$(ECWDIR)\include/NCSECW/ecw
> #ECWLIB  =  $(ECWDIR)\lib\vc90\win32\NCSEcw.lib

vc90 is for MSVC 2008. You should try to match with the version of your compiler
Looking at the information at http://gisinternals.com/stable.php, I'm not sure there is
a version for VS2017 since it uses the old ECW 3.3
(http://gisinternals.com/packageinfo.php?file=release-1911-gdal-2-3-mapserver-7-2.zip)
but the VS2015 package uses SDK 5.3:
http://gisinternals.com/packageinfo.php?file=release-1900-gdal-2-3-mapserver-7-2.zip

In that later case, if you look at the build log of VS2015
http://build2.gisinternals.com/sdk/build-output/vc14-20180809-9-42-22-78-vc14-stable-2.3-7-2.txt
accessible from http://gisinternals.com/status.php,
you could likely try linking against the $(ECWDIR)\lib\vc140\win32\NCSEcw.lib

Or just use the ready-made packages at
http://gisinternals.com/stable.php

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list