<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
What is the intended usage of methods
SetScale/GetScale/SetOffset/GetOffset of the GDALRasterBand class?<br>
<br>
Documentation says that<br>
<blockquote type="cite">
<p>This value (in combination with the <a class="el"
href="http://www.gdal.org/classGDALRasterBand.html#ab62e0761dde3e3b76f83155920275e4f"
title="Fetch the raster value offset.">GetOffset()</a> value)
is used to transform raw pixel values into the units returned by
GetUnits(). For example this might be used to store elevations
in GUInt16 bands with a precision of 0.1, and starting from
-100.</p>
<p>Units value = (raw value * scale) + offset</p>
</blockquote>
<br>
Who is responsible for applying the formula: client code
before/after RasterIO operation, or driver code inside
IReadBlock/IWriteBlock methods?<br>
<br>
<span>Best regards,
</span><br>
<span>Alexander Bobkov</span><br>
</body>
</html>