<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Le 22/01/2024 à 17:53, andy via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAHEdGZNThBPxWjar4m6VE7cpfUi27U4tjODiY8BksdZXiCihKw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div>I have four tif input files, these have 3 bands RGB and are
JPEG compressed.</div>
<div>No null data set.</div>
<div><br>
</div>
<div>My goal is to mosaic these and then warp the mosaic.</div>
<div><br>
</div>
<div>I start it with:</div>
<div><br>
</div>
<div>gdalbuildvrt mosaic.vrt file1.tif
file2.tif
file3.tif
file4.tif</div>
</div>
</blockquote>
<p>Try adding a -addalpha so that the mosaic.vrt is created with an
alpha band which equals to 0 in gaps between your source tiles.
The rest of your procedure should be fine</p>
<span style="white-space: pre-wrap">
</span>
<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>