Skip to content

Commit bde0427

Browse files
committedDec 2, 2011
[BACKPORT] New vector layer dialog - show CRS as authid-description pair
instead of proj4 string
1 parent 9d1cf64 commit bde0427

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎src/gui/qgsnewvectorlayerdialog.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WFlags fl
6464
srs.validate();
6565

6666
mCrsId = srs.srsid();
67-
leSpatialRefSys->setText( srs.toProj4() );
67+
leSpatialRefSys->setText( srs.authid() + " - " + srs.description() );
6868

6969
connect( mNameEdit, SIGNAL( textChanged( QString ) ), this, SLOT( nameChanged( QString ) ) );
7070
connect( mAttributeView, SIGNAL( itemSelectionChanged() ), this, SLOT( selectionChanged() ) );
@@ -162,8 +162,10 @@ void QgsNewVectorLayerDialog::on_pbnChangeSpatialRefSys_clicked()
162162
mySelector->setSelectedCrsId( pbnChangeSpatialRefSys->text().toInt() );
163163
if ( mySelector->exec() )
164164
{
165-
mCrsId = mySelector->selectedCrsId();
166-
leSpatialRefSys->setText( mySelector->selectedAuthId() );
165+
QgsCoordinateReferenceSystem srs;
166+
srs.createFromOgcWmsCrs( mySelector->selectedAuthId() );
167+
mCrsId = srs.srsid();
168+
leSpatialRefSys->setText( srs.authid() + " - " + srs.description() );
167169
}
168170
else
169171
{

0 commit comments

Comments
 (0)
Please sign in to comment.