gdalattachpct.py
Attach a color table from one file to another file.
简介
gdalattachpct.py [-of format] palette_file source_file dest_file
描述
This utility will attach a color table file from an input raster file or a color table file to another raster.
- -of <format>
选择输出格式。从GDAL 2.3开始,如果未指定,则从扩展名猜测格式(以前是GTiff)。使用短格式名称。
- <palette_file>
Extract the color table from <palette_file>. The<palette_file> must be either a raster file in a GDAL supported format with a palette or a color file in a supported format (txt, qml, qlr).
- <source_file>
输入文件。
- <dest_file>
将创建的输出RGB文件。
NOTE: gdalattachpct.py is a Python script, and will only work if GDAL was built with Python support.