Skip to content

Commit

Permalink
Allow create attribute index algorithm to run on non-spatial layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Dec 5, 2022
1 parent 6a07f3c commit 47d6836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmattributeindex.cpp
Expand Up @@ -66,7 +66,7 @@ QgsAttributeIndexAlgorithm *QgsAttributeIndexAlgorithm::createInstance() const

void QgsAttributeIndexAlgorithm::initAlgorithm( const QVariantMap & )
{
addParameter( new QgsProcessingParameterVectorLayer( QStringLiteral( "INPUT" ), QObject::tr( "Input layer" ) ) );
addParameter( new QgsProcessingParameterVectorLayer( QStringLiteral( "INPUT" ), QObject::tr( "Input layer" ), QList<int> { QgsProcessing::TypeVector } ) );
addParameter( new QgsProcessingParameterField( QStringLiteral( "FIELD" ), QObject::tr( "Attribute to index" ), QVariant(), QStringLiteral( "INPUT" ) ) );

addOutput( new QgsProcessingOutputVectorLayer( QStringLiteral( "OUTPUT" ), QObject::tr( "Indexed layer" ) ) );
Expand Down

0 comments on commit 47d6836

Please sign in to comment.