From 25066cfb3b90dc447b26cf4f796e7ed8f1377585 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 15 Mar 2017 19:10:18 +0100 Subject: Document messy GDAL hack --- src/pj_open_lib.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/pj_open_lib.c b/src/pj_open_lib.c index d5ad2549..12aae017 100644 --- a/src/pj_open_lib.c +++ b/src/pj_open_lib.c @@ -160,6 +160,11 @@ pj_open_lib(projCtx ctx, const char *name, const char *mode) { if( ctx->last_errno == 0 && errno != 0 ) pj_ctx_set_errno( ctx, errno ); + /* WARNING: GDAL in alg/gdalapplyverticalshiftgrid.cpp relies on the */ + /* fact that we emit a log message with this debug level and with */ + /* a string that has "fopen(full_path)" in it ! */ + /* This is messy I know, and we should likely have a proper API to do */ + /* that */ pj_log( ctx, PJ_LOG_DEBUG_MAJOR, "pj_open_lib(%s): call fopen(%s) - %s\n", name, sysname, -- cgit v1.2.3