Skip to content

Commit

Permalink
Fixed default projection (WGS 84) so it is now selected when the project
Browse files Browse the repository at this point in the history
properties dialog is opened and no projection has been set.


git-svn-id: http://svn.osgeo.org/qgis/trunk@3126 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Apr 11, 2005
1 parent e3a9a93 commit 8b61289
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -2,6 +2,9 @@
------------------------------------------------------------------------------
Version 0.6 'Simon' .... development version
QGIS Change Log
2005-04-11 [ges]
** Fixed default projection (WGS 84) so it is now selected when the
project properties dialog is opened and no projection has been set.
2005-04-10 [timlinux]
** Added custom projection maker dialog to main app menu. Dialog is still
under construction.
Expand Down
2 changes: 1 addition & 1 deletion src/qgsprojectproperties.cpp
Expand Up @@ -78,7 +78,7 @@
// set the default wkt to WGS 84
// QString defaultWkt = QgsSpatialReferences::instance()->getSrsBySrid(defaultWktKey)->srText();
// the /selectedWKT entry stores the wkt entry selected in the list of projections
QString srsWkt = QgsProject::instance()->readEntry("SpatialRefSys","/selectedWKT","WGS84");
QString srsWkt = QgsProject::instance()->readEntry("SpatialRefSys","/selectedWKT","WGS 84");

projectionSelector->setSelectedWKT(srsWkt);

Expand Down
6 changes: 3 additions & 3 deletions src/qgsvectorlayer.cpp
Expand Up @@ -2549,7 +2549,7 @@ void QgsVectorLayer::setCoordinateSystem()
#endif
QApplication::restoreOverrideCursor();
mCoordinateTransform = new QgsCoordinateTransform("", "");
dataProvider->setWKT(QgsProject::instance()->readEntry("SpatialRefSys","/selectedWKT","WGS84"));
dataProvider->setWKT(QgsProject::instance()->readEntry("SpatialRefSys","/selectedWKT","WGS 84"));
return;
}
else
Expand All @@ -2569,7 +2569,7 @@ void QgsVectorLayer::setCoordinateSystem()
//it in the ctor of the layer projection selector
QgsLayerProjectionSelector * mySelector = new QgsLayerProjectionSelector();
QString srsWkt =
QgsProject::instance()->readEntry("SpatialRefSys","/selectedWKT","WGS84");
QgsProject::instance()->readEntry("SpatialRefSys","/selectedWKT","WGS 84");
mySelector->setSelectedWKT(srsWkt);
if(mySelector->exec())
{
Expand All @@ -2593,7 +2593,7 @@ void QgsVectorLayer::setCoordinateSystem()
}
else if (myDefaultProjectionOption=="useProject")
{
mySourceWKT = QgsProject::instance()->readEntry("SpatialRefSys","/selectedWKT","WGS84");
mySourceWKT = QgsProject::instance()->readEntry("SpatialRefSys","/selectedWKT","WGS 84");
}
else ///qgis/projections/defaultBehaviour==useDefault
{
Expand Down

0 comments on commit 8b61289

Please sign in to comment.