Skip to content

Commit

Permalink
Merge pull request #6153 from agiudiceandrea/patch-1
Browse files Browse the repository at this point in the history
Fixes a typo in syncDb() that improperly set "Imported from GDAL" as name for all geogcs imported from GDAL/PROJ
  • Loading branch information
nyalldawson committed Jan 25, 2018
2 parents 1c34b25 + 12b3011 commit 141be44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgscoordinatereferencesystem.cpp
Expand Up @@ -1807,7 +1807,7 @@ int QgsCoordinateReferenceSystem::syncDb()
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" );

Expand Down

0 comments on commit 141be44

Please sign in to comment.