Skip to content
Permalink
Browse files

Fixing globbing search after breaking it in r11366

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11373 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann
homann committed Aug 14, 2009
1 parent a11c711 commit b53a94fb06bcba7db5b3977a697bea5ea0bd9721
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/core/qgscoordinatereferencesystem.cpp
@@ -425,12 +425,17 @@ bool QgsCoordinateReferenceSystem::createFromProj4( const QString theProj4String
{
// Last ditch attempt to piece together what we know of the projection to find a match...
QgsDebugMsg( "globbing search for srsid from this proj string" );
setProj4String( theProj4String );
mySrsId = findMatchingProj();
QgsDebugMsg( "globbing search for srsid returned srsid: " + QString::number( mySrsId ) );
if ( mySrsId > 0 )
{
createFromSrsId( mySrsId );
}
else
{
mIsValidFlag = false;
}
}
}

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

0 comments on commit b53a94f

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