On Wed, Apr 28, 2021 at 9:38 AM Even Rouault <even.roua...@spatialys.com> wrote:
> We could have a OSRSetAutoclosePROJDatabase() global function that would > call proj_context_set_autoclose_database() when it creates the per-thread > PROJ context > > ==> ogr/ogr_proj_p.cpp > > An alternative would be to enhance PROJ to have a mode where the SQLite3 > db handle would be shared amongst several contexts. In theory that could be > possible as you can invoke sqlite3_open_v2() with SQLITE_OPEN_FULLMUTEX. > But would require non completely trivial changes. > Thanks. I can work around this issue for now. Changes in GDAL might be nice, but I need to work with what's available today. I could certainly PR the first suggestion if there is interest. Perhaps I'm at the point where I should be using PROJ directly rather than as wrapped by GDAL. -- Andrew Bell andrew.bell...@gmail.com
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev