Skip to content
Permalink
Browse files

Fixes a typo in syncDb()

Fixes a typo in QgsCoordinateReferenceSystem::syncDb() that improperly set "Imported from GDAL" as name for all geographical coordinate systems imported from GDAL/PROJ definitions during postintall CRS database synch.

Fixes #17941
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jan 25, 2018
1 parent 975ef8e commit c91e33d33271d4f45c20f54c3989464f8c28ef9d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgscoordinatereferencesystem.cpp
@@ -1962,7 +1962,7 @@ int QgsCoordinateReferenceSystem::syncDatabase()
ellps = ellipseRegExp.cap( 1 );
}

QString name( OSRIsGeographic( crs ) ? OSRGetAttrValue( crs, "GEOCS", 0 ) : OSRGetAttrValue( crs, "PROJCS", 0 ) );
QString name( OSRIsGeographic( crs ) ? OSRGetAttrValue( crs, "GEOGCS", 0 ) : OSRGetAttrValue( crs, "PROJCS", 0 ) );
if ( name.isEmpty() )
name = QObject::tr( "Imported from GDAL" );

0 comments on commit c91e33d

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