This Docker image has been sponsored by INSITU Ingenieria: https://ingenieriainsitu.com/en/
gdal:2.4.4_ECW Docker images (with Python 3).
docker run --rm -it ginetto/gdal:2.4.4_ECWUsing a data volume
$ export DATAFOLDER="-v /folder_with_your_testdata/:/home/datafolder"
$ docker run $DATAFOLDER --name gdalecw -it --rm ginetto/gdal:2.4.4_ECW /bin/bashif my ECW image is /path/to/my.ecw I can convert with:
docker run --rm -it --name gdalecw -v /path/to/:/home/datafolder
ginetto/gdal:2.4.4_ECW
gdal_translate
/home/datafolder/my.ecw
/home/datafolder/my.tif
Use -u option in docker run command to avoid to have result with uid=0 (root). See https://docs.docker.com/engine/reference/run/
see guides in: http://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html https://kokoalberti.com/articles/geotiff-compression-optimization-guide/
apply optimization as -wo options to gdal_translate command
$ git clone https://github.com/luipir/docker-gdalecw.git
$ cd docker-gdalecw
$ docker-compose upThis will create and run automatically ginetto/gdal:2.4.4_ECW image.
To build with other gdal version see: docker-compose.yml build args.
Building process would download ECW redistributable installer, but the way to download it can change due to decision about this proprietary driver.
During time, ECW installer can change the way to download. Adapt Dockerfile reflecting these changes.
Actually the Build is based on downloading the following ECW installer:
ERDASECWJP2SDKv54Update1forLinux
- http://download.osgeo.org/gdal/presentations/GDAL%202.1%20(FOSS4G%20Bonn%202016).pdf
- https://2015.foss4g-na.org/session/gdal-20-overview
- http://trac.osgeo.org/gdal/wiki/GDAL20Changes
GDAL compilations steps are inspired by:
ECW installation is inspired by: