@@ -91,7 +91,7 @@ void QgsCoordinateReferenceSystem::createFromId( const long theId, CrsType theTy
91
91
break ;
92
92
default :
93
93
// THIS IS BAD...THIS PART OF CODE SHOULD NEVER BE REACHED...
94
- QgsLogger::critical ( " Unexpected case reached in " + QString ( __FILE__ ) + " : " + QString ( __LINE__ ) );
94
+ QgsDebugMsg ( " Unexpected case reached! " );
95
95
};
96
96
}
97
97
@@ -253,7 +253,6 @@ bool QgsCoordinateReferenceSystem::createFromWkt( QString theWkt )
253
253
if ( theWkt.isEmpty () )
254
254
{
255
255
QgsDebugMsg ( " theWkt is uninitialised, operation failed" );
256
- QgsLogger::critical ( " QgsCoordinateReferenceSystem::createFromWkt -- theWkt is uninitialised, operation failed" );
257
256
return mIsValidFlag ;
258
257
}
259
258
QgsDebugMsg ( " QgsCoordinateReferenceSystem::createFromWkt(QString theWkt) using: " + theWkt );
@@ -338,8 +337,7 @@ bool QgsCoordinateReferenceSystem::createFromProj4( const QString theProj4String
338
337
myStart = myAxisRegExp.indexIn ( theProj4String, myStart );
339
338
if ( myStart == -1 && mEllipsoidAcronym .isNull () )
340
339
{
341
- QgsLogger::warning ( " QgsCoordinateReferenceSystem::createFromProj4 error"
342
- " proj string supplied has no +ellps or +a argument" );
340
+ QgsDebugMsg ( " proj string supplied has no +ellps or +a argument" );
343
341
return mIsValidFlag ;
344
342
}
345
343
@@ -531,7 +529,7 @@ QgsCoordinateReferenceSystem::RecordMap QgsCoordinateReferenceSystem::getRecord(
531
529
myFileInfo.setFile ( myDatabaseFileName );
532
530
if ( !myFileInfo.exists ( ) )
533
531
{
534
- QgsLogger::warning ( " QgsCoordinateReferenceSystem::getRecord failed : users qgis.db not found" );
532
+ QgsDebugMsg ( " users qgis.db not found" );
535
533
return myMap;
536
534
}
537
535
@@ -557,7 +555,7 @@ QgsCoordinateReferenceSystem::RecordMap QgsCoordinateReferenceSystem::getRecord(
557
555
}
558
556
else
559
557
{
560
- QgsLogger::warning ( " QgsCoordinateReferenceSystem::getRecord failed : " + theSql );
558
+ QgsDebugMsg ( " failed : " + theSql );
561
559
562
560
}
563
561
}
@@ -743,7 +741,7 @@ void QgsCoordinateReferenceSystem::setMapUnits()
743
741
mMapUnits = QGis::Feet;
744
742
else
745
743
{
746
- QgsLogger::warning ( " Unsupported map units of " + unit );
744
+ QgsDebugMsg ( " Unsupported map units of " + unit );
747
745
mMapUnits = QGis::UnknownUnit;
748
746
}
749
747
}
@@ -755,7 +753,7 @@ void QgsCoordinateReferenceSystem::setMapUnits()
755
753
mMapUnits = QGis::Degrees;
756
754
else
757
755
{
758
- QgsLogger::warning ( " Unsupported map units of " + unit );
756
+ QgsDebugMsg ( " Unsupported map units of " + unit );
759
757
mMapUnits = QGis::UnknownUnit;
760
758
}
761
759
QgsDebugMsg ( " Projection has angular units of " + unit );
@@ -822,8 +820,7 @@ long QgsCoordinateReferenceSystem::findMatchingProj()
822
820
}
823
821
}
824
822
}
825
- QgsLogger::warning ( " QgsCoordinateReferenceSystem::findMatchingProj ------->"
826
- " \n no match found in srs.db, trying user db now!" );
823
+ QgsDebugMsg ( " no match found in srs.db, trying user db now!" );
827
824
// close the sqlite3 statement
828
825
sqlite3_finalize ( myPreparedStatement );
829
826
sqlite3_close ( myDatabase );
@@ -862,7 +859,7 @@ long QgsCoordinateReferenceSystem::findMatchingProj()
862
859
}
863
860
}
864
861
}
865
- QgsLogger::warning ( " QgsCoordinateReferenceSystem::findMatchingProj -------> no match found in user db" );
862
+ QgsDebugMsg ( " no match found in user db" );
866
863
867
864
// close the sqlite3 statement
868
865
sqlite3_finalize ( myPreparedStatement );
@@ -1078,7 +1075,7 @@ QString QgsCoordinateReferenceSystem::proj4FromSrsId( const int theSrsId )
1078
1075
myFileInfo.setFile ( myDatabaseFileName );
1079
1076
if ( !myFileInfo.exists ( ) ) // its unlikely that this condition will ever be reached
1080
1077
{
1081
- QgsLogger::critical ( " QgsCoordinateReferenceSystem::getProj4FromSrsId : users qgis.db not found" );
1078
+ QgsDebugMsg ( " users qgis.db not found" );
1082
1079
return NULL ;
1083
1080
}
1084
1081
}
@@ -1125,7 +1122,7 @@ int QgsCoordinateReferenceSystem::openDb( QString path, sqlite3 **db )
1125
1122
1126
1123
if ( myResult )
1127
1124
{
1128
- QgsLogger::critical ( " Can't open database: " + QString ( sqlite3_errmsg ( *db ) ) );
1125
+ QgsDebugMsg ( " Can't open database: " + QString ( sqlite3_errmsg ( *db ) ) );
1129
1126
// XXX This will likely never happen since on open, sqlite creates the
1130
1127
// database if it does not exist.
1131
1128
// ... unfortunately it happens on Windows
0 commit comments