mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Merge pull request #37298 from alexbruy/split-vector
use attribute value in the output file name for Split vector layer algorithm (fix #37296)
This commit is contained in:
commit
c1e91425b6
@ -119,7 +119,7 @@ QVariantMap QgsSplitVectorLayerAlgorithm::processAlgorithm( const QVariantMap &p
|
||||
if ( feedback->isCanceled() )
|
||||
break;
|
||||
|
||||
QString fileName = QStringLiteral( "%1_%2.%3" ).arg( baseName ).arg( current ).arg( outputFormat );
|
||||
QString fileName = QStringLiteral( "%1_%2.%3" ).arg( baseName ).arg( ( *it ).toString() ).arg( outputFormat );
|
||||
feedback->pushInfo( QObject::tr( "Creating layer: %1" ).arg( fileName ) );
|
||||
|
||||
sink.reset( QgsProcessingUtils::createFeatureSink( fileName, context, fields, geometryType, crs ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user