Skip to content

Commit

Permalink
use srs6.db when running from build dir with PROJ >5 (followup dddf8b2)
Browse files Browse the repository at this point in the history
(cherry picked from commit c715bc1)
  • Loading branch information
jef-n committed Jul 17, 2019
1 parent d4f28fa commit 1d5e55f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgsapplication.cpp
Expand Up @@ -954,7 +954,11 @@ QString QgsApplication::srsDatabaseFilePath()
{
if ( ABISYM( mRunningFromBuildDir ) )
{
#if PROJ_VERSION_MAJOR>=6
QString tempCopy = QDir::tempPath() + "/srs.db";
#else
QString tempCopy = QDir::tempPath() + "/srs6.db";
#endif

if ( !QFile( tempCopy ).exists() )
{
Expand Down

0 comments on commit 1d5e55f

Please sign in to comment.