Skip to content

Commit

Permalink
Don't incorrectly flag unknown CRS created from proj strings as invalid
Browse files Browse the repository at this point in the history
on proj 6+ builds
  • Loading branch information
nyalldawson committed Dec 20, 2019
1 parent c8d5c43 commit 5cfa662
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgscoordinatereferencesystem.cpp
Expand Up @@ -1011,6 +1011,7 @@ bool QgsCoordinateReferenceSystem::createFromProj( const QString &projString )
{
// Last ditch attempt to piece together what we know of the projection to find a match...
setProjString( myProj4String );
#if PROJ_VERSION_MAJOR<6
Q_NOWARN_DEPRECATED_PUSH
mySrsId = findMatchingProj();
Q_NOWARN_DEPRECATED_POP
Expand All @@ -1022,6 +1023,7 @@ bool QgsCoordinateReferenceSystem::createFromProj( const QString &projString )
{
d->mIsValid = false;
}
#endif
}
#endif

Expand Down

0 comments on commit 5cfa662

Please sign in to comment.