Skip to content

Commit 9fd773a

Browse files
author
mmassing
committedFeb 23, 2010
Georeferencer: support custom projection strings. Fixes #2464.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12964 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
 

‎src/plugins/georeferencer/qgstransformsettingsdialog.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,17 @@ void QgsTransformSettingsDialog::on_tbnTargetSRS_clicked()
157157

158158
if (srsSelector.exec())
159159
{
160-
QString srs = QString("EPSG: %1").arg(projSelector->selectedEpsg());
160+
QString srs;
161+
// If the selected target SRS has an EPSG ID, use this as identification
162+
if (projSelector->selectedEpsg())
163+
{
164+
srs = QString("EPSG: %1").arg(projSelector->selectedEpsg());
165+
}
166+
else
167+
{
168+
// Describe target SRS by its proj4 string
169+
srs = projSelector->selectedProj4String();
170+
}
161171
leTargetSRS->setText(srs);
162172
}
163173
}

0 commit comments

Comments
 (0)
Please sign in to comment.