mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-30 00:29:39 -05:00
Silence debug
This commit is contained in:
parent
d956af800e
commit
f63bebd9aa
@ -182,12 +182,12 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
|
||||
// find root item
|
||||
// we need to create a temporary layer to get metadata
|
||||
// we could use a provider but the metadata is not as complete and "pretty" and this is easier
|
||||
QgsDebugMsg( QStringLiteral( "creating temporary layer using path %1" ).arg( layerItem->path() ) );
|
||||
QgsDebugMsgLevel( QStringLiteral( "creating temporary layer using path %1" ).arg( layerItem->path() ), 2 );
|
||||
switch ( type )
|
||||
{
|
||||
case QgsMapLayerType::RasterLayer:
|
||||
{
|
||||
QgsDebugMsg( QStringLiteral( "creating raster layer" ) );
|
||||
QgsDebugMsgLevel( QStringLiteral( "creating raster layer" ), 2 );
|
||||
// should copy code from addLayer() to split uri ?
|
||||
QgsRasterLayer::LayerOptions options;
|
||||
options.skipCrsValidation = true;
|
||||
@ -197,7 +197,7 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
|
||||
|
||||
case QgsMapLayerType::MeshLayer:
|
||||
{
|
||||
QgsDebugMsg( QStringLiteral( "creating mesh layer" ) );
|
||||
QgsDebugMsgLevel( QStringLiteral( "creating mesh layer" ), 2 );
|
||||
QgsMeshLayer::LayerOptions options { QgsProject::instance()->transformContext() };
|
||||
options.skipCrsValidation = true;
|
||||
mLayer = std::make_unique < QgsMeshLayer >( layerItem->uri(), layerItem->name(), layerItem->providerKey(), options );
|
||||
@ -206,7 +206,7 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
|
||||
|
||||
case QgsMapLayerType::VectorLayer:
|
||||
{
|
||||
QgsDebugMsg( QStringLiteral( "creating vector layer" ) );
|
||||
QgsDebugMsgLevel( QStringLiteral( "creating vector layer" ), 2 );
|
||||
QgsVectorLayer::LayerOptions options { QgsProject::instance()->transformContext() };
|
||||
options.skipCrsValidation = true;
|
||||
mLayer = std::make_unique < QgsVectorLayer>( layerItem->uri(), layerItem->name(), layerItem->providerKey(), options );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user