Skip to content

Commit b53a94f

Browse files
author
homann
committed
Fixing globbing search after breaking it in r11366
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11373 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a11c711 commit b53a94f

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
@@ -425,12 +425,17 @@ bool QgsCoordinateReferenceSystem::createFromProj4( const QString theProj4String
425425
{
426426
// Last ditch attempt to piece together what we know of the projection to find a match...
427427
QgsDebugMsg( "globbing search for srsid from this proj string" );
428+
setProj4String( theProj4String );
428429
mySrsId = findMatchingProj();
429430
QgsDebugMsg( "globbing search for srsid returned srsid: " + QString::number( mySrsId ) );
430431
if ( mySrsId > 0 )
431432
{
432433
createFromSrsId( mySrsId );
433434
}
435+
else
436+
{
437+
mIsValidFlag = false;
438+
}
434439
}
435440
}
436441

@@ -771,7 +776,8 @@ long QgsCoordinateReferenceSystem::findMatchingProj()
771776
QgsDebugMsg( "entered." );
772777
if ( mEllipsoidAcronym.isNull() || mProjectionAcronym.isNull() || !mIsValidFlag )
773778
{
774-
QgsDebugMsg( "QgsCoordinateReferenceSystem::findMatchingProj will only work if prj acr ellipsoid acr and proj4string are set!..." );
779+
QgsDebugMsg( "QgsCoordinateReferenceSystem::findMatchingProj will only work if prj acr ellipsoid acr and proj4string are set"
780+
" and the current projection is valid!" );
775781
return 0;
776782
}
777783

0 commit comments

Comments
 (0)