<div dir="ltr"><div dir="ltr">On Tue, Apr 27, 2021 at 11:44 PM Alan Snow <<a href="mailto:alansnow21@gmail.com">alansnow21@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">By default pyproj uses the autoclose option and provides this option for users who want better performance and know they have a single threaded application: <a href="https://pyproj4.github.io/pyproj/stable/api/global_context.html" target="_blank">https://pyproj4.github.io/pyproj/stable/api/global_context.html</a></div></blockquote><div><br></div><div>Thanks for this!  But it appears that the PROJ context held by a thread using GDAL is private, so I don't think I can call proj_context_set_autoclose_database(). I think I'm going to have to make sure that the thread actually terminates in order to release the context.</div><div><br></div><div>If someone has other suggestions, I'd be happy to hear them.</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div></div>