Skip to content
Permalink
Browse files

Merge pull request #6153 from agiudiceandrea/patch-1

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 141be446aa198ea8f43ead37b6b6b9483508d04f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgscoordinatereferencesystem.cpp
@@ -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" );

0 comments on commit 141be44

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