Skip to content

Commit 8b77d31

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎src/app/qgsnewvectorlayerdialog.cpp

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

6060
mCrsId = srs.srsid();
61-
leSpatialRefSys->setText( srs.toProj4() );
61+
leSpatialRefSys->setText( srs.authid() + " - " + srs.description() );
6262

6363
connect( mNameEdit, SIGNAL( textChanged( QString ) ), this, SLOT( nameChanged( QString ) ) );
6464
connect( mAttributeView, SIGNAL( itemSelectionChanged() ), this, SLOT( selectionChanged() ) );
@@ -156,8 +156,10 @@ void QgsNewVectorLayerDialog::on_pbnChangeSpatialRefSys_clicked()
156156
mySelector->setSelectedCrsId( pbnChangeSpatialRefSys->text().toInt() );
157157
if ( mySelector->exec() )
158158
{
159-
mCrsId = mySelector->selectedCrsId();
160-
leSpatialRefSys->setText( mySelector->selectedAuthId() );
159+
QgsCoordinateReferenceSystem srs;
160+
srs.createFromOgcWmsCrs( mySelector->selectedAuthId() );
161+
mCrsId = srs.srsid();
162+
leSpatialRefSys->setText( srs.authid() + " - " + srs.description() );
161163
}
162164
else
163165
{

0 commit comments

Comments
 (0)
Please sign in to comment.