diff options
Diffstat (limited to 'src/iso19111/c_api.cpp')
| -rw-r--r-- | src/iso19111/c_api.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index 9219f767..947be058 100644 --- a/src/iso19111/c_api.cpp +++ b/src/iso19111/c_api.cpp @@ -125,6 +125,18 @@ projCppContext::toVector(const char *const *auxDbPaths) { // --------------------------------------------------------------------------- +projCppContext* projCppContext::clone(PJ_CONTEXT *ctx) const { + projCppContext* newContext = new projCppContext( + ctx, + getDbPath().c_str(), + getAuxDbPaths() + ); + newContext->setAutoCloseDb(getAutoCloseDb()); + return newContext; +} + +// --------------------------------------------------------------------------- + void projCppContext::closeDb() { databaseContext_ = nullptr; } // --------------------------------------------------------------------------- |
