@@ -51,6 +51,7 @@ QgsGdalLayerItem::QgsGdalLayerItem( QgsDataItem *parent,
51
51
}
52
52
}
53
53
54
+
54
55
bool QgsGdalLayerItem::setCrs ( const QgsCoordinateReferenceSystem &crs )
55
56
{
56
57
GDALDatasetH hDS = GDALOpen ( mPath .toUtf8 ().constData (), GA_Update );
@@ -71,14 +72,14 @@ bool QgsGdalLayerItem::setCrs( const QgsCoordinateReferenceSystem &crs )
71
72
72
73
QVector<QgsDataItem *> QgsGdalLayerItem::createChildren ()
73
74
{
74
- QgsDebugMsg ( " Entered, path=" + path () );
75
+ QgsDebugMsgLevel ( " Entered, path=" + path (), 3 );
75
76
QVector<QgsDataItem *> children;
76
77
77
78
// get children from sublayers
78
79
if ( !mSublayers .isEmpty () )
79
80
{
80
81
QgsDataItem *childItem = nullptr ;
81
- QgsDebugMsg ( QString ( " got %1 sublayers" ).arg ( mSublayers .count () ) );
82
+ QgsDebugMsgLevel ( QString ( " got %1 sublayers" ).arg ( mSublayers .count () ), 3 );
82
83
for ( int i = 0 ; i < mSublayers .count (); i++ )
83
84
{
84
85
QString name = mSublayers [i];
@@ -172,7 +173,7 @@ QGISEXTERN QgsDataItem *dataItem( QString path, QgsDataItem *parentItem )
172
173
info.setFile ( path );
173
174
QString name = info.fileName ();
174
175
175
- QgsDebugMsgLevel ( " thePath = " + path + " tmpPath= " + tmpPath + " name= " + name
176
+ QgsDebugMsgLevel ( " path = " + path + " tmpPath= " + tmpPath + " name= " + name
176
177
+ " suffix= " + suffix + " vsiPrefix= " + vsiPrefix, 3 );
177
178
178
179
// allow only normal files or VSIFILE items to continue
0 commit comments