Maybe call it "scalar-rgb"? Because ultimately what the encoding does is use the color channels to hold a single value. It doesn't even have to be for elevations at all.<div><br></div><div>Could also add swizzle options in case BGR or some other order is used. And include the alpha channel just in case, but also let alpha be alpha if needed. If e.g. "A" is left off from the swizzle option, then it's an actual alpha channel.</div><div><br></div><div>More general would be scalar encoding of any multichannel (multiband) file, e.g. YCbCr, HSV, CMYK, etc.<br><div><br></div><div>Ray<br><br>
<br>
<br>
<div class="gmail_quote flockmail-quote flockmail-quote-id-<af905f43-69e7-43cf-8e72-1db786df9a45@spatialys.com>">
<div dir="ltr">On Thu, 8 Jan 2026 at 1:13 PM Even wrote:<br></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><pre>>
> There's nothing especially terrain (or topography) about this afaics,
> and utility seems like the right approach rather than creating a
> format variant.
Actually Frédéric's intersting remark abou potential usage with "gdal
raster tile" would actually make the driver approach a better
choice.... unless we would extend "gdal raster tile" to accept a
pipeline to go to create a final tile from a 'raw' one, like 'gdal
raster tile --tile-pipeline="read ! encode-rgb --offset=-10000 ! write
--of PNG" --extension png in.tif out_directory' .
But a ENCODE_RGB driver approach is more simple than implementing that.
Even
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev
</pre></blockquote>
</div></div></div><img class="flm-open" width="0" height="0" style="border:0;width:0;height:0;display:block;" src="https://cdn-east.knownhostlink.com/dc/t/mo/v2?t=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJwIjoiMTAwMiA0NDkxNzExIGdkYWwtZGV2QGxpc3RzLm9zZ2VvLm9yZyAwZGJiN2I2Y2MyM2M3ZjhhMmE1NThlYmZkNzhiYzZlYiA0MjQ3MTkyODc1NTI1NzM0NiAxID8iLCJleHAiOjE3ODM0NjkyMjJ9.mjzhvnSKyBBQ0JcMwY0jLoYRCIXhg1PhYGG_BHs1lyvqwf9nL6En3xmGfGG5BUprGxIBJnTrdUZSEZmQ1T0MbA&requestId=i_09000649_SMR_3105_F79_SQFq">