[gdal-dev] Support for Terrain-RGB
Lars Ahlzen
lars at ahlzen.com
Mon Jan 12 09:06:35 PST 2026
On 12/01/2026 15:17, Even Rouault wrote:
>> Certain creation options, like LOSSLESS=YES in the last example, may
>> need to be passed on from the ENCODE_RGB driver to the actual output
>> driver. Is that possible in general, or would it have to be handled
>> as special cases for different formats?
>>
> You could require that such driver specific options are prefixed with
> something like DRV_OPT_ and then strip that prefix when sending them
> to the underlying driver
That's probably the way to go. The last example would then be:
gdal raster tile --min-zoom 5 --max-zoom 15 --format ENCODE_RGB --co
DRIVER=WEBP --co DRV_OPT_LOSSLESS=YES --co BANDS=RGB --co OFFSET=-10000
--co SCALE=0.1 dem.tif rgb-tiles/
I can start looking at implementing such a driver. I assume this would
warrant an RFC?
- Lars
More information about the gdal-dev
mailing list