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, theCPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITEconfiguration option is set toYES, in which case random-write access is possible (involves the creation of a temporary local file, whose location is controlled by theCPL_TMPDIRconfiguration 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.tifand I get:Input file size is 21600, 10800ERROR 1: Only read-only mode is supported for /vsicurlSo, 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
