Questions tagged «colortable»

1
如何使用GDAL将色表添加到一个波段的Tiff中?
我有1个波段的GeoTIFF文件。带的颜色解释为灰色。我想要一个颜色表,以将其转换Col.tiff为Col.jpeg或Col.png。 我尝试通过.vrt在此tiff中放置一个颜色表: gdal_translate -of VRT Col.tiff Col.vrt 然后添加.vrt: <ColorInterp>Palette</ColorInterp> <ColorTable> <Entry c1="0" c2="0" c3="255" c4="240"/> <Entry c1="0" c2="0" c3="254" c4="240"/> <Entry c1="0" c2="0" c3="253" c4="240"/> <Entry c1="0" c2="0" c3="252" c4="240"/> </ColorTable> 并再次翻译: gdal_translate Col.vrt Col.tiff 但它回答: Warning 1: Unable to export color table to GeoTIFF file. Color tables can only …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.