From 11bc4783ca2c5fed8603d0c49f5aea102eca2432 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 9 Jan 2019 11:56:39 +0100 Subject: proj.db search: use pj_find_file() mechanism instead of hand coded simplified version of it --- src/iso19111/c_api.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/iso19111/c_api.cpp') diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index 70488de4..5717a76a 100644 --- a/src/iso19111/c_api.cpp +++ b/src/iso19111/c_api.cpp @@ -99,9 +99,7 @@ struct projCppContext { explicit projCppContext(PJ_CONTEXT *ctx, const char *dbPath = nullptr, const char *const *auxDbPaths = nullptr) : databaseContext(DatabaseContext::create( - dbPath ? dbPath : std::string(), toVector(auxDbPaths))) { - databaseContext->attachPJContext(ctx); - } + dbPath ? dbPath : std::string(), toVector(auxDbPaths), ctx)) {} static std::vector toVector(const char *const *auxDbPaths) { std::vector res; -- cgit v1.2.3