mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fixed default projection (WGS 84) so it is now selected when the project
properties dialog is opened and no projection has been set. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3126 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
a78b7105cf
commit
bd0fcafb90
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
@ -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())
|
||||
{
|
||||
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user