Skip to content

Commit

Permalink
Raster Layer Props tidy up: Used friendlier crs description in genera…
Browse files Browse the repository at this point in the history
…l props. Also don't use deprecated maplayer::srs method anymore

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15189 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Feb 18, 2011
1 parent 3bee8f6 commit 0959768
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -250,7 +250,8 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer* lyr, QgsMapCanv
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>" );
Expand Down Expand Up @@ -1627,7 +1628,7 @@ void QgsRasterLayerProperties::on_pbnChangeSpatialRefSys_clicked()
{

QgsGenericProjectionSelector * mySelector = new QgsGenericProjectionSelector( this );
mySelector->setSelectedCrsId( mRasterLayer->srs().srsid() );
mySelector->setSelectedCrsId( mRasterLayer->crs().srsid() );
if ( mySelector->exec() )
{
QgsCoordinateReferenceSystem srs( mySelector->selectedCrsId(), QgsCoordinateReferenceSystem::InternalCrsId );
Expand All @@ -1639,7 +1640,8 @@ void QgsRasterLayerProperties::on_pbnChangeSpatialRefSys_clicked()
}
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 )
Expand Down

0 comments on commit 0959768

Please sign in to comment.