Re: [gdal-dev] CPLFindFile not honoring CPLSetConfigOption

2021-08-26 Thread Christopher Corbell
Thanks Even, that helped track it down. Turns out we were calling GDALAllRegister() before calling CPLSetConfigOption(), I think that was causing the internal CPLFindeInit call, looks fixed now. Cheers! On Tue, Aug 24, 2021 at 2:26 PM Even Rouault wrote: > Christopher, > > CPLFindFile() calls

Re: [gdal-dev] CPLFindFile not honoring CPLSetConfigOption

2021-08-24 Thread Even Rouault
Christopher, CPLFindFile() calls CPLFinderInit() which issues CPLGetConfigOption( "GDAL_DATA", nullptr). But CPLFinderInit() runs once per-thread. So a potential theory for what you observe would be that something runs CPLFindFile() before you call CPLSetConfigOption("GDAL_DATA", ...). Settin

[gdal-dev] CPLFindFile not honoring CPLSetConfigOption

2021-08-24 Thread Christopher Corbell
I'm tracking down a bug with WFS data import in our app and it seems like the cause is a call to CPLFindFile returning NULL, looking for a gmlasconf.xml file that should be in the gdal share directory. This is a Mac universal binary app that embeds GDAL as a dylib and also includes the share files