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

on proj 6+ builds
This commit is contained in:
Nyall Dawson 2019-12-17 11:19:48 +10:00
parent c8d5c43402
commit 5cfa6627b4

View File

@ -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