Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All geogcs names imported from GDAL/PROJ are wrongly set to "Imported from GDAL" #25837

Closed
qgib opened this issue Jan 24, 2018 · 3 comments
Closed
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

Comments

@qgib
Copy link
Contributor

qgib commented Jan 24, 2018

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" );

@qgib
Copy link
Contributor Author

qgib commented Jan 24, 2018

Author Name: Andrea Giudiceandrea (@agiudiceandrea)


Pull request with commit that fixes the bug: #6153

@qgib
Copy link
Contributor Author

qgib commented Jan 25, 2018

Author Name: Andrea Giudiceandrea (@agiudiceandrea)


Applied in changeset c91e33d.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Jan 25, 2018
@qgib
Copy link
Contributor Author

qgib commented Feb 21, 2018

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to fixed/implemented

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Projections/Transformations Related to coordinate reference systems or coordinate transformation Crash/Data Corruption Easy fix labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant