Skip to content

Commit 30317a6

Browse files
author
g_j_m
committed
Fix a problem with an incorrect proj4 string and the associated query
to the spatial reference system database (it was never returning a result because the proj4 string didn't have '+no_defs' on the end) git-svn-id: http://svn.osgeo.org/qgis/trunk@5635 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 41015a3 commit 30317a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/qgsdistancearea.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ bool QgsDistanceArea::setEllipsoid(const QString& ellipsoid)
154154
// get spatial ref system for ellipsoid
155155
QString proj4 = "+proj=longlat +ellps=";
156156
proj4 += ellipsoid;
157+
proj4 += " +no_defs";
157158
QgsSpatialRefSys destSRS;
158159
destSRS.createFromProj4(proj4);
159160

0 commit comments

Comments
 (0)