Re: [gdal-dev] don't search side car files on s3 with gdalinfo

2024-04-27 Thread Javier Jimenez Shaw via gdal-dev
Thanks Michael and Even GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR works perfectly for me, in gdalinfo and QGIS. Great. Even. No, I was not setting GDAL_DISABLE_READDIR_ON_OPEN at all. I think I do not have directory listing permission in that folder/bucket (that is why it returns a 403, and not a 40

Re: [gdal-dev] don't search side car files on s3 with gdalinfo

2024-04-27 Thread Even Rouault via gdal-dev
yes, GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR is the trick to both disable directory listing and preventing individual file probing. Javier, do you have GDAL_DISABLE_READDIR_ON_OPEN=YES also set? Otherwise if GDAL_DISABLE_READDIR_ON_OPEN is not set, GDAL will normally issue a S3 directory listin

Re: [gdal-dev] don't search side car files on s3 with gdalinfo

2024-04-27 Thread Michael Smith via gdal-dev
Javier, You can control with the GDAL_DISABLE_READDIR_ON_OPEN configuration parameter (https://gdal.org/user/configoptions.html). Typically, I set GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR which will disable this. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of En

[gdal-dev] don't search side car files on s3 with gdalinfo

2024-04-27 Thread Javier Jimenez Shaw via gdal-dev
Hi I am accessing a big file in S3. All works fine (when I learned how to set the authentication environment variables), but gdalinfo is checking for a lot of files that do not exist. I know there is only a GeoTIFF - COG (no side car files) However gdalinfo is trying to find several side car file