Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
add the indexed laz file name to task name
- Loading branch information
|
@@ -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 ) |
|
|
{ |
|
|
|
@@ -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; |
|
|
|
@@ -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 ); |
|
|