Skip to content

Commit 569f342

Browse files
author
timlinux
committed
Raster Layer Props tidy up: Used friendlier crs description in general props. Also don't use deprecated maplayer::srs method anymore
git-svn-id: http://svn.osgeo.org/qgis/trunk@15189 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 929c71e commit 569f342

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/app/qgsrasterlayerproperties.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer* lyr, QgsMapCanv
250250
tabPageHistogram->setEnabled( false );
251251
}
252252

253-
leSpatialRefSys->setText( mRasterLayer->srs().toProj4() );
253+
leSpatialRefSys->setText( "EPSG:" + QString::number( mRasterLayer->crs().epsg() ) + " - " + mRasterLayer->crs().description() );
254+
leSpatialRefSys->setCursorPosition( 0 );
254255

255256
// Set text for pyramid info box
256257
QString pyramidFormat( "<h2>%1</h2><p>%2 %3 %4</p><b><font color='red'><p>%5</p><p>%6</p>" );
@@ -1627,7 +1628,7 @@ void QgsRasterLayerProperties::on_pbnChangeSpatialRefSys_clicked()
16271628
{
16281629

16291630
QgsGenericProjectionSelector * mySelector = new QgsGenericProjectionSelector( this );
1630-
mySelector->setSelectedCrsId( mRasterLayer->srs().srsid() );
1631+
mySelector->setSelectedCrsId( mRasterLayer->crs().srsid() );
16311632
if ( mySelector->exec() )
16321633
{
16331634
QgsCoordinateReferenceSystem srs( mySelector->selectedCrsId(), QgsCoordinateReferenceSystem::InternalCrsId );
@@ -1639,7 +1640,8 @@ void QgsRasterLayerProperties::on_pbnChangeSpatialRefSys_clicked()
16391640
}
16401641
delete mySelector;
16411642

1642-
leSpatialRefSys->setText( mRasterLayer->srs().toProj4() );
1643+
leSpatialRefSys->setText( "EPSG:" + QString::number( mRasterLayer->crs().epsg() ) + " - " + mRasterLayer->crs().description() );
1644+
leSpatialRefSys->setCursorPosition( 0 );
16431645
}
16441646

16451647
void QgsRasterLayerProperties::on_cboxColorMap_currentIndexChanged( const QString& theText )

0 commit comments

Comments
 (0)