[gdal-dev] gdal_merge
Clive Swan
cliveswan at gmail.com
Tue Nov 29 11:12:41 PST 2022
Greetings,
I am trying to select band 1 and then use gdal_merge to merge two tiff
files in an AWS bucket.
Getting odd errors.
gdal_merge.py -o
/vsis3/summer-outputs/3_dataupdated/rcp26-2020-coastal_flood-NA-false.tif
/vsis3/summer-outputs/3_data_ready_for_spectra/coastal-undefended-rcp26-2020.tif
/vsis3/summer-outputs/5_UK_prod_rasters/coastal-undefended-rcp26-2020.tif
-of GTiff -co -b 1 -co CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE=YES -co
NUM_THREADS=ALL_CPUS --config AWS_ACCESS_KEY_ID KEY_ID --config
AWS_SECRET_ACCESS_KEY ACCESS_KEY
ERRORS
`1' not recognized as a supported file
format.
<< band 1
Warning 6: creation option '-b' is not formatted with the key=value
format
<< band 1
Warning 6: *driver GTiff does not support creation option
*CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE
<< Get an error if leave this out
ERROR 1: *w+ not supported for /vsis3, unless*
CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE is set to YES << Get an
error
ERROR 4: Attempt to create new tiff file
`/vsis3/summer-outputs/3_data_ready/updated/rcp26-2020-coastal_flood-NA-false.tif'
failed: *Permission denied << *added the security key, etc
*Creation failed, terminating gdal_merge.*
--
Regards,
Clive Swan
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20221129/794eb08d/attachment.htm>
More information about the gdal-dev
mailing list