Skip to content

Commit

Permalink
fixed handling of projections not stored in qgis database.
Browse files Browse the repository at this point in the history
now the projection string shouldn't be lost.


git-svn-id: http://svn.osgeo.org/qgis/trunk@10398 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 22, 2009
1 parent 1855fe9 commit e91e198
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/qgscoordinatereferencesystem.cpp
Expand Up @@ -430,8 +430,14 @@ bool QgsCoordinateReferenceSystem::createFromProj4( const QString theProj4String
}
}
}

// if we failed to look up the projection in database, don't worry. we can still use it :)
if (!mIsValidFlag)
{
setProj4String(theProj4String);
}


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

Expand Down

0 comments on commit e91e198

Please sign in to comment.