Skip to content

Commit e91e198

Browse files
author
wonder
committed
fixed handling of projections not stored in qgis database.
now the projection string shouldn't be lost. git-svn-id: http://svn.osgeo.org/qgis/trunk@10398 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1855fe9 commit e91e198

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/core/qgscoordinatereferencesystem.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,14 @@ bool QgsCoordinateReferenceSystem::createFromProj4( const QString theProj4String
430430
}
431431
}
432432
}
433+
434+
// if we failed to look up the projection in database, don't worry. we can still use it :)
435+
if (!mIsValidFlag)
436+
{
437+
setProj4String(theProj4String);
438+
}
439+
433440

434-
// NOTE: if its still empty after all the above steps then, the projection string is lost. Is that bad?
435441
return mIsValidFlag;
436442
}
437443

0 commit comments

Comments
 (0)