Skip to content

Commit 6cd0fa1

Browse files
committed
create the CRS project properties during the project creation
1 parent eae4c2e commit 6cd0fa1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/qgisapp.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -3299,7 +3299,9 @@ void QgisApp::fileNew( bool thePromptToSaveFlag, bool forceBlank )
32993299
srs.createFromOgcWmsCrs( defCrs );
33003300
myRenderer->setDestinationCrs( srs );
33013301
// write the projections _proj string_ to project settings
3302-
prj->writeEntry( "SpatialRefSys", "/ProjectCrs", defCrs );
3302+
prj->writeEntry( "SpatialRefSys", "/ProjectCRSProj4String", srs.toProj4() );
3303+
prj->writeEntry( "SpatialRefSys", "/ProjectCrs", srs.authid() );
3304+
prj->writeEntry( "SpatialRefSys", "/ProjectCRSID", (int) srs.srsid() );
33033305
prj->dirty( false );
33043306
if ( srs.mapUnits() != QGis::UnknownUnit )
33053307
{

0 commit comments

Comments
 (0)