Skip to content

Commit 63c491e

Browse files
committed
pj_obj_create(): do not open database
Fixes https://lists.osgeo.org/pipermail/proj/2025-November/011934.html
1 parent 1ebd0ca commit 63c491e

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)