Re: [gdal-dev] Call for discussion: RFC88: Use GoogleTest framework for C/C++ unit tests

2022-11-20 Thread Frank Warmerdam
On Sun, Nov 20, 2022 at 8:21 PM Even Rouault wrote: > Hi Frank, > > > I'm not a huge GoogleTest fan but then I'm also not saying it *worse* than > any alternative, but the reasons are reasonably convincing, and I'm happy > if those running and contributing tests are happy! > > Just curious what y

Re: [gdal-dev] Call for discussion: RFC88: Use GoogleTest framework for C/C++ unit tests

2022-11-20 Thread Even Rouault
Hi Frank, I'm not a huge GoogleTest fan but then I'm also not saying it *worse* than any alternative, but the reasons are reasonably convincing, and I'm happy if those running and contributing tests are happy! Just curious what you don't like with GoogleTest ? Should I understand from the R

Re: [gdal-dev] Call for discussion: RFC88: Use GoogleTest framework for C/C++ unit tests

2022-11-20 Thread Frank Warmerdam
Even, I'm not a huge GoogleTest fan but then I'm also not saying it *worse* than any alternative, but the reasons are reasonably convincing, and I'm happy if those running and contributing tests are happy! Should I understand from the RFC that https://github.com/rouault/gdal/tree/gtest implements

Re: [gdal-dev] errors using IAM instance profile auth in s3

2022-11-20 Thread Michael Smith
Cool, I was looking at the PR and trying to decide if it was the same error. The error state being cleared and then working did sound like the same issue. It all makes sense now. Thanks for the fix! Mike -- Michael Smith US Army Corps / Remote Sensing GIS Center From: Even

Re: [gdal-dev] errors using IAM instance profile auth in s3

2022-11-20 Thread Even Rouault
Mike, I've ended up firing a EC2 instance and I did replicate with my private bucket too. With a EC2 Ubuntu 22.04 instance, on a minimal GDAL master debug build, things work fine with IAM authentication, in the VM itself But if I run inside a ubuntu:22.04 Docker image the same build (mounti

Re: [gdal-dev] errors using IAM instance profile auth in s3

2022-11-20 Thread Michael Smith
If I duplicate the open line in gdalinfo.py, hDataset = gdal.Open(pszFilename, gdal.GA_ReadOnly) hDataset = gdal.Open(pszFilename, gdal.GA_ReadOnly) python /opt/conda/envs/grid/lib/python3.11/site-packages/osgeo_utils/samples/gdalinfo.py /vsis3/grid-dev-publiclidar/estonia/dtm/estonia_dtm

Re: [gdal-dev] errors using IAM instance profile auth in s3

2022-11-20 Thread Michael Smith
Oh, its just the second open that works In [1]: from osgeo import gdal In [2]: pszFilename = "/vsis3/grid-dev-publiclidar/estonia/dtm/estonia_dtm_5m.tif" In [3]: hDataset = gdal.OpenEx(pszFilename, gdal.GA_ReadOnly) In [4]: hDataset In [5]: hDataset = gdal.Open(pszFilename, gdal.GA_ReadOnly) In [6

Re: [gdal-dev] errors using IAM instance profile auth in s3

2022-11-20 Thread Michael Smith
Is there a reason why OpenEx would work but Open wouldn’t? In [1]: from osgeo import gdal In [2]: pszFilename = "/vsis3/grid-dev-publiclidar/estonia/dtm/estonia_dtm_5m.tif" In [3]: hDataset = gdal.Open(pszFilename, gdal.GA_ReadOnly) In [4]: hDataset In [5]: hDataset = gdal.OpenEx(pszFilena