Skip to content

Commit

Permalink
Be less fussy when matching proj strings to auth/code from qgis db on…
Browse files Browse the repository at this point in the history
… 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)
  • Loading branch information
nyalldawson committed May 13, 2019
1 parent 20c458f commit d42baf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgscoordinatereferencesystem.cpp
Expand Up @@ -1062,7 +1062,10 @@ QgsCoordinateReferenceSystem::RecordMap QgsCoordinateReferenceSystem::getRecord(
if ( statement.step() != SQLITE_DONE )
{
QgsDebugMsgLevel( QStringLiteral( "Multiple records found in srs.db" ), 4 );
//be less fussy on proj 6 -- the db has MANY more entries!
#if PROJ_VERSION_MAJOR<6
myMap.clear();
#endif
}
}
else
Expand Down

0 comments on commit d42baf4

Please sign in to comment.