Skip to content

gdal_translate -co COMPRESS=DEFLATE fails #97

@steo85it

Description

@steo85it

Steps to reproduce

When trying

gdal_translate -co COMPRESS=DEFLATE in.tif out.tif

with the following gdal installation

spack -k install [email protected]+hdf4+hdf5+jpeg+liblzma+netcdf+python+zstd+deflate

I get the error message below.

Error message

Warning 6: 'deflate' is an unexpected value for COMPRESS creation option of type string-select.
ERROR 1: Cannot create TIFF file due to missing codec for deflate.

This seems to be related to modifications in spack#31197 and wasn't happening with a previous [email protected] installation from Fall 2021 (I can attach the specifics if needed). FYI, COMPRESS=LZW still works fine and gives the expected output.

Information on your system

  • Spack: 0.19.0.dev0
  • Python: 3.6.13
  • Platform: linux-centos7-haswell
  • Concretizer: clingo

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output

@adamjstewart

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions