From 488db767afdea5ade4e8392a4f31ccd2de5cdbe0 Mon Sep 17 00:00:00 2001 From: Dirk Vanden Boer Date: Tue, 5 Nov 2024 19:58:05 +0100 Subject: [PATCH] Make sure the proj db path is absolute --- gdal.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdal.cpp b/gdal.cpp index 240135e3..f9b2bd11 100644 --- a/gdal.cpp +++ b/gdal.cpp @@ -138,6 +138,10 @@ void register_gdal() void register_gdal(RegistrationConfig cfg) { + if (cfg.projdbPath.is_relative()) { + cfg.projdbPath = fs::absolute(cfg.projdbPath); + } + #ifdef EMBED_GDAL_DATA create_embedded_data(); #endif