Skip to content
Permalink
Browse files
[BACKPORT] New vector layer dialog - show CRS as authid-description pair
instead of proj4 string
  • Loading branch information
alexbruy committed Dec 2, 2011
1 parent d2da5fd commit 8b77d31df77db7ff69dc7b4fde0f3375b0dbf4ca
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/app/qgsnewvectorlayerdialog.cpp
@@ -58,7 +58,7 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WFlags fl
srs.validate();

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

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

0 comments on commit 8b77d31

Please sign in to comment.