Skip to content
Permalink
Browse files

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
  • Loading branch information
wonder
wonder committed Mar 22, 2009
1 parent 1855fe9 commit e91e198f1c69528c0c5000d9706f53afdf5002ac
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/core/qgscoordinatereferencesystem.cpp
@@ -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;
}

0 comments on commit e91e198

Please sign in to comment.
You can’t perform that action at this time.