<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Jukka,<br>
</p>
<div class="moz-cite-prefix">Le 26/10/2025 à 22:23, Rahkonen Jukka
via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:PA3PR09MB8258BB36EB0426A8EA521F06FDFFA@PA3PR09MB8258.eurprd09.prod.outlook.com">
<pre class="moz-quote-pre" wrap="">Hi,
I tried to use gdalenhance by having VRT as the outputformat and supposed that the resulting VRT would contain LUT elements, but it did not. Is this a known but undocumented limitation in <a class="moz-txt-link-freetext" href="https://gdal.org/en/stable/programs/gdalenhance.html">https://gdal.org/en/stable/programs/gdalenhance.html</a>?</pre>
</blockquote>
<p>yes. It does use VRT internally, but using a method (<span>VRTSourcedRasterBand::<em>AddFuncSource</em>())</span>
that doesn't support serialization as XML VRT.</p>
<p>Error message and doc added in
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/commit/d7748d51e550b75b19869a1e222bdf85b40c75bf">https://github.com/OSGeo/gdal/commit/d7748d51e550b75b19869a1e222bdf85b40c75bf</a></p>
<p>Even<br>
</p>
--
<pre class="moz-signature" cols="72"><a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>