Skip to content

Commit 89c2aef

Browse files
authored
Merge pull request #4617 from rouault/pj_obj_create_no_db_context
pj_obj_create(): do not open database
2 parents 298c714 + 63c491e commit 89c2aef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/iso19111/c_api.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,9 @@ PJ *pj_obj_create(PJ_CONTEXT *ctx, const BaseObjectNNPtr &objIn) {
204204
bTryToExportToProj = false;
205205
}
206206
if (bTryToExportToProj) {
207-
auto dbContext = getDBcontextNoException(ctx, __FUNCTION__);
208207
try {
209208
auto formatter = PROJStringFormatter::create(
210-
PROJStringFormatter::Convention::PROJ_5,
211-
std::move(dbContext));
209+
PROJStringFormatter::Convention::PROJ_5, nullptr);
212210
auto projString = coordop->exportToPROJString(formatter.get());
213211
const bool defer_grid_opening_backup = ctx->defer_grid_opening;
214212
if (!defer_grid_opening_backup &&

0 commit comments

Comments
 (0)