Skip to content
Permalink
Browse files

create the CRS project properties during the project creation

  • Loading branch information
leyan committed Jan 23, 2014
1 parent eae4c2e commit 6cd0fa165f574488f82741a9aeb2048624a7c43d
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/app/qgisapp.cpp
@@ -3299,7 +3299,9 @@ void QgisApp::fileNew( bool thePromptToSaveFlag, bool forceBlank )
srs.createFromOgcWmsCrs( defCrs );
myRenderer->setDestinationCrs( srs );
// write the projections _proj string_ to project settings
prj->writeEntry( "SpatialRefSys", "/ProjectCrs", defCrs );
prj->writeEntry( "SpatialRefSys", "/ProjectCRSProj4String", srs.toProj4() );
prj->writeEntry( "SpatialRefSys", "/ProjectCrs", srs.authid() );
prj->writeEntry( "SpatialRefSys", "/ProjectCRSID", (int) srs.srsid() );
prj->dirty( false );
if ( srs.mapUnits() != QGis::UnknownUnit )
{

0 comments on commit 6cd0fa1

Please sign in to comment.
You can’t perform that action at this time.