Skip to content

Commit

Permalink
Show info on QgsDebug if srs db is not found (and path where it was b…
Browse files Browse the repository at this point in the history
…eing sought)

git-svn-id: http://svn.osgeo.org/qgis/trunk@5818 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 12, 2006
1 parent 57264d4 commit 2e0a381
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/widgets/projectionselector/qgsprojectionselector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ QString QgsProjectionSelector::getCurrentProj4String()
std::cout << " QgsProjectionSelector::getCurrentProj4String : users qgis.db not found" << std::endl;
return NULL;
}
else
{
QgsDebug(myDatabaseFileName);
QgsDebug("File not found");
}
}
else //must be a system projection then
{
Expand Down Expand Up @@ -891,6 +896,8 @@ void QgsProjectionSelector::on_pbnFind_clicked()
myFileInfo.setFile(myDatabaseFileName);
if ( !myFileInfo.exists( ) ) //its not critical if this happens
{
qDebug(myDatabaseFileName);
qDebug("User db does not exist");
return ;
}
myResult = sqlite3_open(myDatabaseFileName.toLocal8Bit().data(), &myDatabase);
Expand Down Expand Up @@ -966,6 +973,11 @@ long QgsProjectionSelector::getLargestSRSIDMatch(QString theSql)
}
}
}
else
{
QgsDebug(myDatabaseFileName);
QgsDebug("File not found");
}
//only bother looking in srs.db if it wasnt found above

myResult = sqlite3_open(mSrsDatabaseFileName.toLocal8Bit().data(), &myDatabase);
Expand Down

0 comments on commit 2e0a381

Please sign in to comment.