Skip to content

Latest commit

 

History

History
91 lines (72 loc) · 3.27 KB

README.md

File metadata and controls

91 lines (72 loc) · 3.27 KB

Sponsored by

This Docker image has been sponsored by INSITU Ingenieria: https://ingenieriainsitu.com/en/

Docker gdalecw

gdal:2.4.4_ECW Docker images (with Python 3).

docker run --rm -it ginetto/gdal:2.4.4_ECW

Using 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/bash

How to abandon ECW to compressed GTiff

if 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/

GTIFF compression parameters

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

Build the image on your own

$ git clone https://github.com/luipir/docker-gdalecw.git
$ cd docker-gdalecw
$ docker-compose up

This will create and run automatically ginetto/gdal:2.4.4_ECW image.

Build other GDAL version

To build with other gdal version see: docker-compose.yml build args.

Adapt build to ECW installer

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

Changelog

GDAL 2 info

Credits

GDAL compilations steps are inspired by:

ECW installation is inspired by: