Skip to content

Commit d42baf4

Browse files
committedMay 13, 2019
Be less fussy when matching proj strings to auth/code from qgis db on proj 6
The db has many more entries, and ideally the matching using qgis db is going to be removed asap (as soon as proj can correctly perform this identification itself)
1 parent 20c458f commit d42baf4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/core/qgscoordinatereferencesystem.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,10 @@ QgsCoordinateReferenceSystem::RecordMap QgsCoordinateReferenceSystem::getRecord(
10621062
if ( statement.step() != SQLITE_DONE )
10631063
{
10641064
QgsDebugMsgLevel( QStringLiteral( "Multiple records found in srs.db" ), 4 );
1065+
//be less fussy on proj 6 -- the db has MANY more entries!
1066+
#if PROJ_VERSION_MAJOR<6
10651067
myMap.clear();
1068+
#endif
10661069
}
10671070
}
10681071
else

0 commit comments

Comments
 (0)
Please sign in to comment.