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.
  • Loading branch information
agiudiceandrea committed Jan 24, 2018
1 parent 845bf29 commit 12b3011283d52af0df6da47ddf8ca2953f323f6e
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 12b3011

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