Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix output directory handling in the tile algorithm
  • Loading branch information
alexbruy authored and wonder-sk committed May 8, 2023
1 parent 30eed0b commit bf3bcac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/analysis/processing/pdal/qgsalgorithmpdaltile.cpp
Expand Up @@ -80,9 +80,12 @@ QStringList QgsPdalTileAlgorithm::createArgumentLists( const QVariantMap &parame
feedback->reportError( QObject::tr( "No layers selected" ), true );
}

const QString outputDir = parameterAsOutputLayer( parameters, QStringLiteral( "OUTPUT" ), context );
const QString outputDir = parameterAsString( parameters, QStringLiteral( "OUTPUT" ), context );
setOutputValue( QStringLiteral( "OUTPUT" ), outputDir );

if ( !QDir().mkpath( outputDir ) )
throw QgsProcessingException( QStringLiteral( "Failed to create output directory." ) );

int length = parameterAsInt( parameters, QStringLiteral( "LENGTH" ), context );

QStringList args;
Expand Down

0 comments on commit bf3bcac

Please sign in to comment.