Skip to content
Permalink
Browse files
Raster Layer Props tidy up: Used friendlier crs description in genera…
…l 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
  • Loading branch information
timlinux committed Feb 18, 2011
1 parent 929c71e commit 569f34225a063fc59cdfb361158dadde412794c6
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/app/qgsrasterlayerproperties.cpp
@@ -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>" );
@@ -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 );
@@ -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 )

0 comments on commit 569f342

Please sign in to comment.