<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Even, Ray, thanks for the answers<br>
<br>
22.06.2015 23:28, Ray Gardener пишет:<br>
</div>
<blockquote cite="mid:55886FFF.30603@daylongraphics.com" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">The functions are to allow mapping
between logical and physical pixel values. This is very common
in e.g. elevation DEMs.<br>
<br>
Applying them is done by the calling code. At least, I haven't
seen any routines in GDAL that <br>
would apply them for you.<br>
<br>
Ray<br>
<br>
<br>
On 6/22/2015 7:50 AM, Alexander Bobkov wrote:<br>
</div>
<blockquote cite="mid:558820B9.80003@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
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
moz-do-not-send="true" 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
</body>
</html>