MCPcopy Create free account
hub / github.com/OSGeo/PROJ / getDBcontext

Function getDBcontext

src/filemanager.cpp:1773–1780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1771// ---------------------------------------------------------------------------
1772
1773static NS_PROJ::io::DatabaseContextPtr getDBcontext(PJ_CONTEXT *ctx) {
1774 try {
1775 return ctx->get_cpp_context()->getDatabaseContext().as_nullable();
1776 } catch (const std::exception &e) {
1777 pj_log(ctx, PJ_LOG_DEBUG, "%s", e.what());
1778 return nullptr;
1779 }
1780}
1781
1782/************************************************************************/
1783/* FileManager::open_resource_file() */

Calls 4

pj_logFunction · 0.85
getDatabaseContextMethod · 0.80
get_cpp_contextMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected