[QGIS-trac] [Quantum GIS] #3674: Can not set custom CRS as default for new project/layer

Quantum GIS qgis at qgis.org
Wed Mar 23 10:34:29 EDT 2011


#3674: Can not set custom CRS as default for new project/layer
------------------------------------------------+---------------------------
   Reporter:  imincik1                          |              Owner:  borysiasty   
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  Projection Support                |            Version:               
   Keywords:                                    |   Platform_version:               
   Platform:  All                               |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 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
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3674>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list