Skip to content
Permalink
Browse files
Dont use deprecated call to maplayer::srs
git-svn-id: http://svn.osgeo.org/qgis/trunk@15188 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Feb 18, 2011
1 parent 9a19485 commit 929c71e44fe32916d1835dfc389569454116e71d
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgsvectorlayerproperties.cpp
@@ -127,7 +127,7 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(

updateButtons();

leSpatialRefSys->setText( "EPSG:" + QString::number( layer->crs().epsg() ) + " - " + layer->srs().description() );
leSpatialRefSys->setText( "EPSG:" + QString::number( layer->crs().epsg() ) + " - " + layer->crs().description() );
leSpatialRefSys->setCursorPosition( 0 );

leEditForm->setText( layer->editForm() );
@@ -878,7 +878,7 @@ QString QgsVectorLayerProperties::metadata()
myMetadata += tr( "Layer Spatial Reference System:" );
myMetadata += "</td></tr>";
myMetadata += "<tr><td>";
myMetadata += layer->srs().toProj4().replace( QRegExp( "\"" ), " \"" );
myMetadata += layer->crs().toProj4().replace( QRegExp( "\"" ), " \"" );
myMetadata += "</td></tr>";

//
@@ -977,7 +977,7 @@ void QgsVectorLayerProperties::on_pbnChangeSpatialRefSys_clicked()
{
QgsGenericProjectionSelector * mySelector = new QgsGenericProjectionSelector( this );
mySelector->setMessage();
mySelector->setSelectedCrsId( layer->srs().srsid() );
mySelector->setSelectedCrsId( layer->crs().srsid() );
if ( mySelector->exec() )
{
QgsCoordinateReferenceSystem srs( mySelector->selectedCrsId(), QgsCoordinateReferenceSystem::InternalCrsId );
@@ -989,7 +989,7 @@ void QgsVectorLayerProperties::on_pbnChangeSpatialRefSys_clicked()
}
delete mySelector;

leSpatialRefSys->setText( "EPSG:" + QString::number( layer->crs().epsg() ) + " - " + layer->srs().description() );
leSpatialRefSys->setText( "EPSG:" + QString::number( layer->crs().epsg() ) + " - " + layer->crs().description() );
leSpatialRefSys->setCursorPosition( 0 );
}

0 comments on commit 929c71e

Please sign in to comment.