Bug report #17257

Custom project CRS is not restored correctly on project load

Added by Anita Graser about 7 years ago. Updated about 7 years ago.

Status:Closed
Priority:High
Assignee:Nyall Dawson
Category:Project Loading/Saving
Affected QGIS version:master Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:25155

Description

I have a project with a custom CRS used as the project CRS. (Specifically: +proj=ortho +lat_0=42.1 +lon_0=12.8 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs) It was created with 2.14.

When I open the 2.14 project in master, a different CRS is assigned. Could be the one with the same random generated ID that custom CRS get.

If I save the project using master and reopen it, the correct CRS id is displayed in the project properties but the map is not rendered correctly either. I have to change the CRS to another and then back to make it look correct.

Associated revisions

Revision 39851f44
Added by Nyall Dawson about 7 years ago

Invalidate crs cache after adding a new user CRS

Refs #17257

Revision f2b5a595
Added by Nyall Dawson about 7 years ago

Fix loading 2.x projects with custom CRS

Fixes #17257

History

#1 Updated by Nyall Dawson about 7 years ago

  • Assignee set to Nyall Dawson

#2 Updated by Nyall Dawson about 7 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF