Bug report #19691

The default crs of the project should not be overridden by the first layer added

Added by Harrissou Santanna over 2 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Projection Support
Affected QGIS version:3.3(master) Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27516

Description

In the Settings --> Options --> CRS menu, user can choose a CRS which is used as default whenever he opens a new blank project.
Then if he adds a layer:
  • if the layer CRS is different from the one set for the project, the project CRS is changed and aligned with the first loaded layer CRS;
  • if it's a geometryless layer, then the project CRS is set to epsg:4326

I think instead of automatically overriding the crs of the project (which was consciously set by default), it should keep it and reproject the files added. Discussion at http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-Unable-to-understand-the-quot-Default-CRS-for-new-projects-quot-setting-td5372179.html and proposals from Nyall are:

The options I can see are:

1. Remove the setting, always start new projects in EPSG:4326, and
then switch to match the crs of the first loaded layer

2. Remove the "set project crs to match first loaded layer crs"
feature, and always start new projects in the crs defined by that
setting. Loading layers doesn't change the crs.

We need to proceed with caution here. For reference, I'd be a hesitant
+1 to option 2.

Also available in: Atom PDF