Skip to content
Permalink
Browse files

Don't incorrectly flag unknown CRS created from proj strings as invalid

on proj 6+ builds
  • Loading branch information
nyalldawson committed Dec 17, 2019
1 parent c8d5c43 commit 5cfa6627b47cacc92fc4b6d46539f8cbab5061f6
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgscoordinatereferencesystem.cpp
@@ -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
@@ -1022,6 +1023,7 @@ bool QgsCoordinateReferenceSystem::createFromProj( const QString &projString )
{
d->mIsValid = false;
}
#endif
}
#endif

0 comments on commit 5cfa662

Please sign in to comment.
You can’t perform that action at this time.