Skip to content

Commit

Permalink
Make sure the proj db path is absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Nov 5, 2024
1 parent 941a07b commit 488db76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gdal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 488db76

Please sign in to comment.