aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/c_api.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-01-09 11:56:39 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-01-09 12:34:40 +0100
commit11bc4783ca2c5fed8603d0c49f5aea102eca2432 (patch)
tree95adef15f42efa35ff8862e9c3753c6206068f87 /src/iso19111/c_api.cpp
parent96339b80be1ad3db18075e2d8d650ef121797964 (diff)
downloadPROJ-11bc4783ca2c5fed8603d0c49f5aea102eca2432.tar.gz
PROJ-11bc4783ca2c5fed8603d0c49f5aea102eca2432.zip
proj.db search: use pj_find_file() mechanism instead of hand coded simplified version of it
Diffstat (limited to 'src/iso19111/c_api.cpp')
-rw-r--r--src/iso19111/c_api.cpp4
1 files changed, 1 insertions, 3 deletions
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<std::string> toVector(const char *const *auxDbPaths) {
std::vector<std::string> res;