From 4a2adfc3df15d61cf033f3cbb3d2c9b6c5d05420 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 25 Jun 2019 20:24:20 +1000 Subject: [PATCH] Adapt PROJ search path handling for Proj 6.1.1 --- src/core/qgsprojutils.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/qgsprojutils.cpp b/src/core/qgsprojutils.cpp index 7fb8a685e72..f36a27f833d 100644 --- a/src/core/qgsprojutils.cpp +++ b/src/core/qgsprojutils.cpp @@ -257,11 +257,15 @@ QStringList QgsProjUtils::searchPaths() #if PROJ_VERSION_MAJOR >= 6 const QString path( proj_info().searchpath ); QStringList paths; -// #ifdef Q_OS_WIN -#if 1 // -- see https://github.com/OSGeo/proj.4/pull/1497 +#if PROJ_VERSION_MINOR == 1 and PROJ_VERSION_PATCH == 0 + // -- see https://github.com/OSGeo/proj.4/pull/1497 + paths = path.split( ';' ); +#else +#ifdef Q_OS_WIN paths = path.split( ';' ); #else paths = path.split( ':' ); +#endif #endif QSet existing;