All geogcs names imported from GDAL/PROJ are wrongly set to "Imported from GDAL" #25837
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Crash/Data Corruption
Easy fix
High Priority
Projections/Transformations
Related to coordinate reference systems or coordinate transformation
Author Name: Andrea Giudiceandrea (@agiudiceandrea)
Original Redmine Issue: 17941
Affected QGIS version: 2.18.16
Redmine category:projection_support
QGIS 2.8.16 64 bit (but also in master) on Windows 7 SP1 64 bit
During postintall procedures, crssync.exe runs in order to synchronize CRS database with GDAL/PROJ definitions: while new projected coordinate systems names are properly imported in srs.db, new geographical coordinate systems names are all (338) set to "Imported from GDAL" also when they have a name.
The bug is caused by a typo ("GEOCS" instead of "GEOGCS")in QgsCoordinateReferenceSystem::syncDb()
QString name( OSRIsGeographic( crs ) ? OSRGetAttrValue( crs, -"GEOCS"- "GEOGCS", 0 ) : OSRGetAttrValue( crs, "PROJCS", 0 ) );
if ( name.isEmpty() )
name = QObject::tr( "Imported from GDAL" );
The text was updated successfully, but these errors were encountered: