[gdal-dev] Gdal translate ECW to TIF.

Dmitriy T. demonbusov1 at yandex.ru
Wed Aug 8 20:05:49 PDT 2018


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

to

# Uncomment the following and update to enable ECW read support with the 5.0
SDK
ECWDIR  =  "C:\Intergraph\ERDAS ECW JPEG 2000 SDK 5.0"
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

5) In cmd as admin execute:
copy "C:\Intergraph\ERDAS ECW JPEG 2000 SDK
5.0\redistributable\vc90\win32\*.dll" C:\windows\system32
yes

6) In 86 Native Tools Command Prompt for VS 2017 cmd as admin execute:

A) cd C:\gdal_ecw\gdal-2.3.0
B) nmake -f makefile.vc
C) nmake /f makefile.vc install
D) nmake -f makefile.vc devinstall

7) Add in C:\gdal\gdal-2.3.0\apps:

A) from.png
B) from.ecw
C) C:\Intergraph\ERDAS ECW JPEG 2000 SDK 5.0\bin\vc90\win32\NCSEcw.dll
D) C:\gdal\gdal-2.3.0\gdal203.dll

8) cd C:\gdal\gdal-2.3.0\apps
gdalinfo --formats

output:
...
PNG -raster- (rwv): Portable Network Graphics
...
ECW -raster- (rov): ERDAS Compressed Wavelets (SDK 5.0)
...

9) In cmd as admin:
gdal_translate -of GTiff -co "TILED=YES" from.png to.tif

result:
A) output message:
Input file size is 800, 1000
0...10...20...30...40...50...60...70...80...90...100 - done.
B) to.tif

10) In cmd as admin:
gdal_translate -of GTiff -co "TILED=YES" from.ecw to.tif

result:
A) output message: <no output message and no errors, but gdal_translate
completed>
B) no to.tif

Why ecw to tif not translated? Please help me.




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list