[gdal-dev] Gdal translate ECW to TIF.
Jeff McKenna
jmckenna at gatewaygeomatics.com
Fri Aug 10 06:00:28 PDT 2018
Hi Dmitriy,
Another package that includes ECW support is MS4W (read more at
https://ms4w.com/README_INSTALL.html#ecw)
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/
On 2018-08-09 12:05 AM, 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
>
> 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
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list