Skip to content

Commit

Permalink
Merge pull request #58027 from nyalldawson/grass_inputs
Browse files Browse the repository at this point in the history
Allow running processing tools on grass vector layers
  • Loading branch information
alexbruy authored Jul 9, 2024
2 parents 2379ca8 + 4c29831 commit 3ab7ace
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/GdalAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def getOgrCompatibleSource(self,
parameters = {parameter_name: parameters[parameter_name].source}

input_layer = self.parameterAsVectorLayer(parameters, parameter_name, context)
if input_layer is None or input_layer.providerType() == 'memory':
if input_layer is None or input_layer.providerType() in ('memory', 'grass'):
if executing:
# parameter is not a vector layer - try to convert to a source compatible with OGR
# and extract selection if required
Expand Down
2 changes: 0 additions & 2 deletions src/gui/processing/qgsprocessingmaplayercombobox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ QgsProcessingMapLayerComboBox::QgsProcessingMapLayerComboBox( const QgsProcessin
if ( filters )
mCombo->setFilters( filters );

mCombo->setExcludedProviders( QStringList() << QStringLiteral( "grass" ) ); // not sure if this is still required...

// Check compatibility with virtualraster data provider
// see https://github.com/qgis/QGIS/issues/55890
if ( mayBeRaster &&
Expand Down

0 comments on commit 3ab7ace

Please sign in to comment.