Navigation Menu

Skip to content

Commit

Permalink
add the indexed laz file name to task name
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Feb 10, 2021
1 parent 48acff6 commit 3cefcba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/providers/pdal/qgspdaleptgenerationtask.cpp
Expand Up @@ -28,8 +28,8 @@
#include "qgsmessagelog.h"
#include "qgis.h"

QgsPdalEptGenerationTask::QgsPdalEptGenerationTask( const QString &file, const QString &outputDir )
: QgsTask( tr( "Generate EPT Index" ) )
QgsPdalEptGenerationTask::QgsPdalEptGenerationTask( const QString &file, const QString &outputDir, const QString &name )
: QgsTask( tr( "Generate EPT Index " ) + name )
, mOutputDir( outputDir )
, mFile( file )
{
Expand Down
2 changes: 1 addition & 1 deletion src/providers/pdal/qgspdaleptgenerationtask.h
Expand Up @@ -24,7 +24,7 @@ class QgsPdalEptGenerationTask: public QgsTask
Q_OBJECT

public:
QgsPdalEptGenerationTask( const QString &file, const QString &outputDir );
QgsPdalEptGenerationTask( const QString &file, const QString &outputDir, const QString &name = QString() );
bool run() override;

QString untwineExecutableBinary() const;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/pdal/qgspdalprovider.cpp
Expand Up @@ -101,7 +101,7 @@ void QgsPdalProvider::generateIndex()

const QString outputDir = _outdir( dataSourceUri() );

QgsPdalEptGenerationTask *generationTask = new QgsPdalEptGenerationTask( dataSourceUri(), outputDir );
QgsPdalEptGenerationTask *generationTask = new QgsPdalEptGenerationTask( dataSourceUri(), outputDir, QStringLiteral( "( " ) + QFileInfo( dataSourceUri() ).fileName() + QStringLiteral( " )" ) );

connect( generationTask, &QgsPdalEptGenerationTask::taskTerminated, this, &QgsPdalProvider::onGenerateIndexFailed );
connect( generationTask, &QgsPdalEptGenerationTask::taskCompleted, this, &QgsPdalProvider::onGenerateIndexFinished );
Expand Down

0 comments on commit 3cefcba

Please sign in to comment.