Bug report #3674

Can not set custom CRS as default for new project/layer

Added by Ivan Mincik over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:Low
Assignee:Jürgen Fischer
Category:Projection Support
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:13733

Description

It is not possible to set custom CRS as default for new project/layer ( 'Options > CRS '). Even if selected in list of CRSs, the result is always WGS 84.

Debug log:

Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 74: (QgsProjectionSelector) Use popular projection list from [[AuthId]]/Proj4 saved state
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/core/qgscoordinatereferencesystem.cpp: 798: (setMapUnits) Projection has linear units of Meter
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/core/qgscoordinatereferencesystem.cpp: 798: (setMapUnits) Projection has linear units of Meter
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/core/qgscoordinatereferencesystem.cpp: 798: (setMapUnits) Projection has linear units of Meter
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/core/qgscoordinatereferencesystem.cpp: 798: (setMapUnits) Projection has linear units of Meter
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/core/qgscoordinatereferencesystem.cpp: 798: (setMapUnits) Projection has linear units of Meter
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/core/qgscoordinatereferencesystem.cpp: 798: (setMapUnits) Projection has linear units of Meter
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 583: (loadUserCrsList) Fetching user projection list...
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 378: (selectedProj4String) mySrsId = 3452
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 379: (selectedProj4String) USER_CRS_START_ID = 100000
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 403: (selectedProj4String) db = /usr/share/qgis/resources/srs.db
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 419: (selectedProj4String) Selection sql: select parameters from tbl_srs where srs_id = 3452
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 378: (selectedProj4String) mySrsId = 3644
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 379: (selectedProj4String) USER_CRS_START_ID = 100000
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 403: (selectedProj4String) db = /usr/share/qgis/resources/srs.db
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 419: (selectedProj4String) Selection sql: select parameters from tbl_srs where srs_id = 3644
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 378: (selectedProj4String) mySrsId = 100000
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 379: (selectedProj4String) USER_CRS_START_ID = 100000
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 396: (selectedProj4String) users qgis.db found
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 403: (selectedProj4String) db = /home/ivo/.qgis/qgis.db
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 419: (selectedProj4String) Selection sql: select parameters from tbl_srs where srs_id = 100000
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 506: (getSelectedExpression) Finding selected attribute using : select upper(auth_name||':'||auth_id) from tbl_srs where srs_id=100000
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/core/qgscoordinatereferencesystem.cpp: 272: (loadFromDb) failed : select srs_id,description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name||':'||auth_id,is_geo from tbl_srs where lower(auth_name||':'||auth_id)=_
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/gui/qgsprojectionselector.cpp: 506: (getSelectedExpression) Finding selected attribute using : select upper(auth_name||':'||auth_id) from tbl_srs where srs_id=100000
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/app/qgsoptions.cpp: 785: (on_pbnSelectOtfProjection_clicked) Setting default project CRS to :
Debug: /tmp/buildd/qgis-1.7.0~trunk1/src/app/qgsoptions.cpp: 787: (on_pbnSelectOtfProjection_clicked) ------ Global OTF Projection Selection set to ----------
EPSG:4326 - WGS 84

Associated revisions

Revision 8e5431eb
Added by Jürgen Fischer over 10 years ago

fix #3674

git-svn-id: http://svn.osgeo.org/qgis/trunk/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision afe3c309
Added by Jürgen Fischer over 10 years ago

fix #3674

git-svn-id: http://svn.osgeo.org/qgis/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

History

#1 Updated by Borys Jurgiel over 10 years ago

JEF, sorry for planting this bug, but you'll do it easier and safer than me :)

#2 Updated by Jürgen Fischer over 10 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

fixed in afe3c309 (SVN r15587).

Also available in: Atom PDF