You should add an =
symbol between the option and the value. Without your data i cant test your specific example, but for me this fails:
gdal_translate --config COMPRESS LZW infile.tif outfile.tif
and this works fine:
gdal_translate --config COMPRESS=LZW infile.tif outfile.tif
You can also write the --config
as -co
, and wrapping it with quotes also works, which is how i usually do it.
gdal_translate -co "COMPRESS=LZW" infile.tif outfile.tif