Skip to content
Permalink
Browse files

Consider default CRS in new shape / spatialite dialogs

  • Loading branch information
mhugent committed Aug 27, 2013
1 parent 7d1bcb6 commit 611b35bf4148fbaff83b8f779974b95f93bc694e
Showing with 3 additions and 2 deletions.
  1. +1 −1 src/app/qgsnewspatialitelayerdialog.cpp
  2. +2 −1 src/gui/qgsnewvectorlayerdialog.cpp
@@ -74,7 +74,7 @@ QgsNewSpatialiteLayerDialog::QgsNewSpatialiteLayerDialog( QWidget *parent, Qt::W

// Set the SRID box to a default of WGS84
QgsCoordinateReferenceSystem srs;
srs.createFromOgcWmsCrs( GEO_EPSG_CRS_AUTHID );
srs.createFromOgcWmsCrs( settings.value( "/Projections/layerDefaultCrs", GEO_EPSG_CRS_AUTHID ).toString() );
srs.validate();
mCrsId = srs.authid();
leSRID->setText( srs.authid() + " - " + srs.description() );
@@ -66,7 +66,8 @@ QgsNewVectorLayerDialog::QgsNewVectorLayerDialog( QWidget *parent, Qt::WFlags fl
mAttributeView->addTopLevelItem( new QTreeWidgetItem( QStringList() << "id" << "Integer" << "10" << "" ) );

QgsCoordinateReferenceSystem srs;
srs.createFromOgcWmsCrs( GEO_EPSG_CRS_AUTHID );

srs.createFromOgcWmsCrs( settings.value( "/Projections/layerDefaultCrs", GEO_EPSG_CRS_AUTHID ).toString() );
srs.validate();

mCrsId = srs.srsid();

0 comments on commit 611b35b

Please sign in to comment.
You can’t perform that action at this time.