Skip to content
Permalink
Browse files

Avoid qDebug

  • Loading branch information
nyalldawson authored and PeterPetrik committed Nov 9, 2020
1 parent c7a6e6b commit 6ca94e6b413e137675b44f86f2a3a83f924b78f4
Showing with 7 additions and 6 deletions.
  1. +2 −2 src/3d/qgspointcloudlayerchunkloader_p.cpp
  2. +5 −4 src/core/providers/ept/qgseptpointcloudindex.cpp
@@ -217,7 +217,7 @@ QgsPointCloudLayerChunkLoader::QgsPointCloudLayerChunkLoader( const QgsPointClou

Q_ASSERT( pc->hasNode( pcNode ) );

qDebug() << "loading entity" << node->tileId().text();
QgsDebugMsgLevel( QStringLiteral( "loading entity %1" ).arg( node->tileId().text() ), 2 );

QgsPointCloud3DSymbolHandler *handler = new QgsPointCloud3DSymbolHandler;
mHandler.reset( handler );
@@ -231,7 +231,7 @@ QgsPointCloudLayerChunkLoader::QgsPointCloudLayerChunkLoader( const QgsPointClou

if ( mCanceled )
{
qDebug() << "canceled";
QgsDebugMsgLevel( QStringLiteral( "canceled" ), 2 );
return;
}
mHandler->processNode( pc, pcNode, mContext );
@@ -29,6 +29,7 @@
#include "qgscoordinatereferencesystem.h"
#include "qgspointcloudrequest.h"
#include "qgspointcloudattribute.h"
#include "qgslogger.h"

///@cond PRIVATE

@@ -168,10 +169,10 @@ bool QgsEptPointCloudIndex::load( const QString &fileName )


double dx = xmax - xmin, dy = ymax - ymin, dz = zmax - zmin;
qDebug() << "lvl0 node size in CRS units:" << dx << dy << dz; // all dims should be the same
qDebug() << "res at lvl0" << dx / mSpan;
qDebug() << "res at lvl1" << dx / mSpan / 2;
qDebug() << "res at lvl2" << dx / mSpan / 4 << "with node size" << dx / 4;
QgsDebugMsgLevel( QStringLiteral( "lvl0 node size in CRS units: %1 %2 %3" ).arg( dx ).arg( dy ).arg( dz ), 2 ); // all dims should be the same
QgsDebugMsgLevel( QStringLiteral( "res at lvl0 %1" ).arg( dx / mSpan ), 2 );
QgsDebugMsgLevel( QStringLiteral( "res at lvl1 %1" ).arg( dx / mSpan / 2 ), 2 );
QgsDebugMsgLevel( QStringLiteral( "res at lvl2 %1 with node size %2" ).arg( dx / mSpan / 4 ).arg( dx / 4 ), 2 );

// load hierarchy

0 comments on commit 6ca94e6

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