[gdal-dev] How to determine which creation options are supported by a driver?

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Thu Nov 30 12:32:06 PST 2023


Hi,

Run ”gdalinfo –format GTiff”.  For me it prints:
<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>ZSTD</Value>
  </Option>

So my GDAL build does not support LERC.

-Jukka Rahkonen-

Lähettäjä: gdal-dev <gdal-dev-bounces at lists.osgeo.org> Puolesta Meyer, Jesse R. (GSFC-618.0)[SCIENCE SYSTEMS AND APPLICATIONS INC] via gdal-dev
Lähetetty: torstai 30. marraskuuta 2023 22.19
Vastaanottaja: Even Rouault via gdal-dev <gdal-dev at lists.osgeo.org>
Aihe: [gdal-dev] How to determine which creation options are supported by a driver?

Hi,

I have gdal 3.8.1 installed via Brew which includes liblerc and zstd as part of their formulae, so I assumed I could use the creation options “COMPRESS=LERC_ZSTD” and “MAX_Z_ERROR=x” as documented on the GTIFF page when creating a new gtif image.

But when I do GDAL states:

“Warning 6: 'LERC_ZSTD' is an unexpected value for COMPRESS creation option of type string-select.
Warning 6: driver GTiff does not support creation option MAX_Z_ERROR”

So I am not sure if this is an issue with the driver itself or with the brew formula.  Please advise,

Thanks,
Jesse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20231130/cbbd135d/attachment-0001.htm>


More information about the gdal-dev mailing list