<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Javier,</p>
<p>You can use the "NONE" resampling method in BuildOverviews() or
gdaladdo to create the overviews IFD without allocating any
storage, and then you can open the file in update mode to set
whatever values you want. APPEND_SUBDATASET=YES will not set the
appropriate value for the SubFileType TIFF tag, and thus such
pages won't be recognized as overviews</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 13/07/2021 à 13:57, Javier Jimenez
Shaw a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CADRrdKvTd4LwQzCYVOPNkhZ__5aH0bUzCmL_LXTyWzJS2sj8DA@mail.gmail.com">
<div dir="ltr">
<div>Hi</div>
<div><br>
</div>
<div>I am computing the overviews of a GeoTIFF on my own (using
the GPU, much faster), and I want to include them in the tif
file (also in the ovr sidecar file).</div>
<div>What is the best way to do it? Just creating a multipage
TIFF (I guess with the option APPEND_SUBDATASET=YES)? Is there
anything else needed (metadata, tiff tags, etc)?</div>
<div><br>
</div>
<div>So far I want to do it in RGBA 8 bit images. (In the future
I want to do it also in float32 images with nodata value and
any number of bands, but no hurry).<br>
</div>
<div><br>
</div>
<div>I am using GDAL 3.3.1</div>
<div><br>
</div>
<div>Any help is welcome.<br>
</div>
<div><br>
</div>
<div>Thanks.</div>
<div>Javier.<br>
</div>
<div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">.___ ._ ..._ .. . ._.
.___ .. __ . _. . __.. ... .... ._ .__<br>
Entre dos pensamientos racionales <br>
hay infinitos pensamientos irracionales.<br>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-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="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<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>