Skip to content

Commit

Permalink
Fix a problem with an incorrect proj4 string and the associated query
Browse files Browse the repository at this point in the history
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
  • Loading branch information
g_j_m committed Jul 25, 2006
1 parent 41015a3 commit 30317a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsdistancearea.cpp
Expand Up @@ -154,6 +154,7 @@ bool QgsDistanceArea::setEllipsoid(const QString& ellipsoid)
// get spatial ref system for ellipsoid
QString proj4 = "+proj=longlat +ellps=";
proj4 += ellipsoid;
proj4 += " +no_defs";
QgsSpatialRefSys destSRS;
destSRS.createFromProj4(proj4);

Expand Down

0 comments on commit 30317a6

Please sign in to comment.