<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Michael,</p>
<p>I couldn't reproduce your error (the temp file gets deleted for
me), but the creation of a temporary file on /vsis3/ was certainly
a bug. I've addressed this per
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/12421">https://github.com/OSGeo/gdal/pull/12421</a></p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 20/05/2025 à 02:38, Michael Sumner
via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAAcGz9_+qQmvt6YEweY1Cc+c--dfVERqmaUxSV9F24=mtaa0gg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>When I write a COG to object storage, I see the external
overview being created in CPL_TMPDIR, but there is a
.tif.tmp.tif file that then isn't cleaned up. This is on a
custom endpoint. I see</div>
<div><br>
</div>
<div>gdalwarp test_me.tif /vsis3/ideatest/sometest6.tif -of COG
-co SPARSE_OK=YES -ts 14400 7200 -overwrite<br>
Creating output file that is 14400P x 7200L.<br>
Using internal nodata values (e.g. -999) for image
test_me.tif.<br>
Copying nodata values from source test_me.tif to destination
/vsis3/ideatest/sometest6.tif.tmp.tif.<br>
0...10...20...30...40...50...60...70...80...90...100 - done in
00:00:15.<br>
ERROR 1: Delete of /vsis3/ideatest/sometest6.tif.tmp.tif
failed<br>
ERROR 1: Deleting /vsis3/ideatest/sometest6.tif.tmp.tif
failed:<br>
Success<br>
</div>
<div><br>
</div>
<div>In CPL_TMPDIR I see this file transiently listed as
expected: </div>
<div><br>
</div>
<div>[1] "sometest6_2305026_3.ovr.tmp"<br>
<br>
</div>
<div><br>
</div>
<div>Is there something else I need to do to have that
sometest6.tif.tmp.tif written to CPL_TMPDIR?</div>
<div><br>
</div>
<div>To use the custom endpoint I have the following settings: </div>
<div><br>
</div>
<div>AWS_ACCESS_KEY_ID=...<br>
AWS_SECRET_ACCESS_KEY=...<br>
AWS_S3_ENDPOINT=https:///...<br>
AWS_VIRTUAL_HOSTING=FALSE<br>
CPL_VSIS3_CREATE_DIR_OBJECT=TRUE<br>
CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE=YES<br>
CPL_TMPDIR=$MYSCRATCH/tmp<br>
</div>
<div><br>
</div>
<div>Thanks, Mike</div>
<div><br>
</div>
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">Michael Sumner<br>
Research Software Engineer<br>
Australian Antarctic Division<br>
Hobart, Australia<br>
e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">mdsumner@gmail.com</a></div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></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>