mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Don't incorrectly flag unknown CRS created from proj strings as invalid
on proj 6+ builds
This commit is contained in:
parent
c8d5c43402
commit
5cfa6627b4
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user