[QGIS Commit] r12964 - trunk/qgis/src/plugins/georeferencer
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Feb 23 06:14:39 EST 2010
Author: mmassing
Date: 2010-02-23 06:14:39 -0500 (Tue, 23 Feb 2010)
New Revision: 12964
Modified:
trunk/qgis/src/plugins/georeferencer/qgstransformsettingsdialog.cpp
Log:
Georeferencer: support custom projection strings. Fixes #2464.
Modified: trunk/qgis/src/plugins/georeferencer/qgstransformsettingsdialog.cpp
===================================================================
--- trunk/qgis/src/plugins/georeferencer/qgstransformsettingsdialog.cpp 2010-02-22 23:34:42 UTC (rev 12963)
+++ trunk/qgis/src/plugins/georeferencer/qgstransformsettingsdialog.cpp 2010-02-23 11:14:39 UTC (rev 12964)
@@ -157,7 +157,17 @@
if (srsSelector.exec())
{
- QString srs = QString("EPSG: %1").arg(projSelector->selectedEpsg());
+ QString srs;
+ // If the selected target SRS has an EPSG ID, use this as identification
+ if (projSelector->selectedEpsg())
+ {
+ srs = QString("EPSG: %1").arg(projSelector->selectedEpsg());
+ }
+ else
+ {
+ // Describe target SRS by its proj4 string
+ srs = projSelector->selectedProj4String();
+ }
leTargetSRS->setText(srs);
}
}
More information about the QGIS-commit
mailing list