Opened 3 years ago

Closed 3 years ago

#663 closed defect (fixed)

Missing LERC codec in gdal 3.2 in "testing" install

Reported by: houska1 Owned by: osgeo4w-dev@…
Priority: major Component: Package
Version: Keywords: gdal libtiff lerc
Cc:

Description

Attempting to install QGIS rel + dependencies with new "testing" OSGeo4W. Various of my tif files are reported unavailable by QGIS. Digging deeper, seems gdal cannot read them.

From terminal, running gdalinfo (3.2) on those files fails with "CODEC not found". In old OSGeo4W (with gdal 3.1), they open fine, and gdalinfo returns:

Image Structure Metadata:
  COMPRESSION=LERC_ZSTD
  INTERLEAVE=BAND
  LERC_VERSION=2.4

I suspect the issue might be that in the old build, gdal was built with internal libtiff and perhaps in the new one, it wasn't. I'm not sure how to check that, but it is supported by running gdalinfo --format GTiff which does not list LERC compression options in the new 3.2 but does in the old 3.1.

Setting priority as major even though it is perhaps an infrequent use case, due to the effect of making previously readable QGIS projects fail to open in an apparently identical new "testing" install.

Change History (2)

comment:1 by houska1, 3 years ago

Failure cause confirmed by studying the output of gdalinfo --format GTiff further.

In new "testing" install - gdal 3.2

 <Option name="COMPRESS" type="string-select">
    <Value>NONE</Value>
    <Value>LZW</Value>
    <Value>PACKBITS</Value>
    <Value>JPEG</Value>
    <Value>CCITTRLE</Value>
    <Value>CCITTFAX3</Value>
    <Value>CCITTFAX4</Value>
    <Value>DEFLATE</Value>
    <Value>LZMA</Value>
    <Value>ZSTD</Value>
  Other metadata items:
    LIBGEOTIFF=1600
    LIBTIFF=LIBTIFF, Version 4.1.0
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.

In old install - gdal 3.1

  <Option name="COMPRESS" type="string-select">
    <Value>NONE</Value>
    <Value>LZW</Value>
    <Value>PACKBITS</Value>
    <Value>JPEG</Value>
    <Value>CCITTRLE</Value>
    <Value>CCITTFAX3</Value>
    <Value>CCITTFAX4</Value>
    <Value>DEFLATE</Value>
    <Value>LZMA</Value>
    <Value>ZSTD</Value>
    <Value>WEBP</Value>
    <Value>LERC</Value>
    <Value>LERC_DEFLATE</Value>
    <Value>LERC_ZSTD</Value>
  Other metadata items:
    LIBGEOTIFF=1600
    LIBTIFF=INTERNAL

comment:2 by jef, 3 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.