Re: [gdal-dev] GDALOpenEx() not failing silently

2025-06-29 Thread Even Rouault via gdal-dev
-dev@lists.osgeo.org *Subject:* Re: [gdal-dev] GDALOpenEx() not failing silently Hi, you can surround the call to GDALOpenEx() with CPLPushErrorHandler(CPLQuietErrorHandler); ... GDALOpenEx() here ... CPLPopErrorHandler(); Le 29/06/2025 à 21:20, Joaquim Manuel Freire Luís via gdal-dev a écrit :

Re: [gdal-dev] GDALOpenEx() not failing silently

2025-06-29 Thread Joaquim Manuel Freire Luís via gdal-dev
29, 2025 8:24 PM To: Joaquim Manuel Freire Luís ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] GDALOpenEx() not failing silently Hi, you can surround the call to GDALOpenEx() with CPLPushErrorHandler(CPLQuietErrorHandler); ... GDALOpenEx() here ... CPLPopErrorHandler(); Le 29/06/2025 à 21

Re: [gdal-dev] GDALOpenEx() not failing silently

2025-06-29 Thread Even Rouault via gdal-dev
Hi, you can surround the call to GDALOpenEx() with CPLPushErrorHandler(CPLQuietErrorHandler); ... GDALOpenEx() here ... CPLPopErrorHandler(); Le 29/06/2025 à 21:20, Joaquim Manuel Freire Luís via gdal-dev a écrit : Hi, Again the Julia wrapper. In it to find if a file holds a raster or a v

[gdal-dev] GDALOpenEx() not failing silently

2025-06-29 Thread Joaquim Manuel Freire Luís via gdal-dev
Hi, Again the Julia wrapper. In it to find if a file holds a raster or a vector I first open it with GDAL_OF_RASTER and see it the return pointer is NULL. This has been working well and SILENTLY when it fail (because a OGR vector file name was passed in). But with these Meteostat .csv.gz files