Skip to content

Commit

Permalink
[processing][needs-docs] Hide variable distance buffer from toolbox
Browse files Browse the repository at this point in the history
This algorithm has become a model-only algorithm, since it's
functionality is now present in the native c++ buffer algorithm
(which can now buffer by field or expression).

Ideally we'd remove this algorithm entirely, but data defined
parameters are not yet supported by the modeler gui, so we need
to keep it around for use in models for now.
  • Loading branch information
nyalldawson committed Jan 16, 2018
1 parent ecd113d commit 17478ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/qgis/VariableDistanceBuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

from qgis.core import (QgsWkbTypes,
QgsProcessing,
QgsProcessingAlgorithm,
QgsProcessingParameterFeatureSource,
QgsProcessingParameterField,
QgsProcessingParameterNumber,
Expand Down Expand Up @@ -67,6 +68,9 @@ def groupId(self):
def __init__(self):
super().__init__()

def flags(self):
return QgsProcessingAlgorithm.FlagSupportsBatch | QgsProcessingAlgorithm.FlagCanCancel | QgsProcessingAlgorithm.FlagHideFromToolbox

def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterFeatureSource(self.INPUT,
self.tr('Input layer')))
Expand Down

0 comments on commit 17478ea

Please sign in to comment.