Adapt PROJ search path handling for Proj 6.1.1

This commit is contained in:
Nyall Dawson 2019-06-25 20:24:20 +10:00
parent 512642db18
commit 4a2adfc3df

View File

@ -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<QString> existing;