Skip to content
Permalink
Browse files

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

on proj 6+ builds

(cherry picked from commit 5cfa662)
  • Loading branch information
nyalldawson committed Dec 17, 2019
1 parent b1f4717 commit 2c6f49c5de923dc6c73beff6a16398d6fc906aae
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgscoordinatereferencesystem.cpp
@@ -1008,6 +1008,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
@@ -1019,6 +1020,7 @@ bool QgsCoordinateReferenceSystem::createFromProj( const QString &projString )
{
d->mIsValid = false;
}
#endif
}
#endif

0 comments on commit 2c6f49c

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