[QGIS Commit] r15189 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Feb 18 04:13:20 EST 2011


Author: timlinux
Date: 2011-02-18 01:13:20 -0800 (Fri, 18 Feb 2011)
New Revision: 15189

Modified:
   trunk/qgis/src/app/qgsrasterlayerproperties.cpp
Log:
Raster Layer Props tidy up: Used friendlier crs description in general props. Also don't use deprecated maplayer::srs method anymore

Modified: trunk/qgis/src/app/qgsrasterlayerproperties.cpp
===================================================================
--- trunk/qgis/src/app/qgsrasterlayerproperties.cpp	2011-02-18 09:13:05 UTC (rev 15188)
+++ trunk/qgis/src/app/qgsrasterlayerproperties.cpp	2011-02-18 09:13:20 UTC (rev 15189)
@@ -250,7 +250,8 @@
     tabPageHistogram->setEnabled( false );
   }
 
-  leSpatialRefSys->setText( mRasterLayer->srs().toProj4() );
+  leSpatialRefSys->setText( "EPSG:" + QString::number( mRasterLayer->crs().epsg() ) + " - " + mRasterLayer->crs().description() );
+  leSpatialRefSys->setCursorPosition( 0 );
 
   // Set text for pyramid info box
   QString pyramidFormat( "<h2>%1</h2><p>%2 %3 %4</p><b><font color='red'><p>%5</p><p>%6</p>" );
@@ -1627,7 +1628,7 @@
 {
 
   QgsGenericProjectionSelector * mySelector = new QgsGenericProjectionSelector( this );
-  mySelector->setSelectedCrsId( mRasterLayer->srs().srsid() );
+  mySelector->setSelectedCrsId( mRasterLayer->crs().srsid() );
   if ( mySelector->exec() )
   {
     QgsCoordinateReferenceSystem srs( mySelector->selectedCrsId(), QgsCoordinateReferenceSystem::InternalCrsId );
@@ -1639,7 +1640,8 @@
   }
   delete mySelector;
 
-  leSpatialRefSys->setText( mRasterLayer->srs().toProj4() );
+  leSpatialRefSys->setText( "EPSG:" + QString::number( mRasterLayer->crs().epsg() ) + " - " + mRasterLayer->crs().description() );
+  leSpatialRefSys->setCursorPosition( 0 );
 }
 
 void QgsRasterLayerProperties::on_cboxColorMap_currentIndexChanged( const QString& theText )



More information about the QGIS-commit mailing list