I was able to get this to work by upgrading to V3.3.3.
 
03.11.2021, 20:01, "Vladimir Sandoval" <[email protected]>:
With GDAL v3.2.1, Windows 10 - trying to write a geotiff to an S3 bucket using /vsis3/.
 
The documentation states:
 
It also allows sequential writing of files. No seeks or read operations are then allowed, so in particular direct writing of GeoTIFF files with the GTiff driver is not supported, unless, if, starting with GDAL 3.2, the CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE configuration option is set to YES, in which case random-write access is possible (involves the creation of a temporary local file, whose location is controlled by the CPL_TMPDIR configuration option).
 
So I have (obfuscated for privacy)
 
gdal_translate ---config AWS_CONFIG_FILE c:/temp/credentials --config AWS_PROFILE myProfile --config AWS_VIRTUAL_HOSTING FALSE --config AWS_S3_ENDPOINT ourEndpoint.com --config CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE YES --config CPL_TMPDIR c:/temp/ -of COG  c:/temp/BlueMarbleJune.ntf /vsis3/test-imagery/COGS/BlueMarbleJune2.cog.tif
 
and I get:
Input file size is 21600, 10800
ERROR 1: Only read-only mode is supported for /vsicurl
 
So, can I write a geotiff to S3 using those config options, or am I reading or doing something wrong with them?  I am able to write sequential rasters like NITF to S3.
 
V
 
 
,

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to