<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>William,</p>
<p>can you add "--debug on" and retry to see if more hints are
emitted about what's going on.</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 15/08/2022 à 11:45, William Roper a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAO5tZdOyqKD12S+6JwCdmXAPJqg7N+o3tnhVBN7xQ+DOGM8XQA@mail.gmail.com">
<div dir="ltr">
<div>Hi list, <br>
</div>
<div><br>
</div>
<div>I'm trying to convert a GeoTiff on s3 into a COG, that will
also live on s3. I'm working on EC2 instances, or fargate
containers, because local download and upload speeds are a bit
slow. <br>
</div>
<div><br>
</div>
<div>
<pre class="gmail-c-mrkdwn__pre">gdalwarp \
--config AWS_SECRET_ACCESS_KEY <my-secret-key> \
--config AWS_ACCESS_KEY_ID <my-access-key> \
--config CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE YES \
--config CPL_TMPDIR /tmp \
-of COG
-co TILING_SCHEME=GoogleMapsCompatible
-co COMPRESS=DEFLATE
-co NUM_THREADS=ALL_CPUS
/vsis3/my-bucket/original-old-geotif.tif
/vsis3/my-bucket/shiny-new-cog.tif</pre>
</div>
<div><br>
</div>
<div>And get the following error: <br>
</div>
<div>
<pre class="gmail-c-mrkdwn__pre">0...10...20...30...ERROR 1: Only read-only mode is supported for /vsicurl</pre>
</div>
<div><br>
</div>
<div>I get the same issue running in a docker container
(osgeo/gdal:latest) or on an ubuntu EC2 instance with gdal-bin
installed with apt (version 3.4.1). <br>
</div>
<div><br>
</div>
<div>I can work around it by writing the COG to the machine, and
then uploading to s3, but was wondered what I was doing
wrong/not understanding.<br>
</div>
<div><br>
</div>
<div>Many thanks</div>
<div>Will<br>
</div>
<div><br>
</div>
<br>
</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>