Skip to content

Commit

Permalink
[processing] allow geometryless layers as input in aggregate alg.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Sep 18, 2018
1 parent f3b15be commit f160847
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/algs/qgis/Aggregate.py
Expand Up @@ -34,6 +34,7 @@
QgsField,
QgsFields,
QgsGeometry,
QgsProcessing,
QgsProcessingParameterDefinition,
QgsProcessingParameterExpression,
QgsProcessingParameterFeatureSink,
Expand Down Expand Up @@ -68,7 +69,8 @@ def displayName(self):

def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterFeatureSource(self.INPUT,
self.tr('Input layer')))
self.tr('Input layer'),
types=[QgsProcessing.TypeVector]))
self.addParameter(QgsProcessingParameterExpression(self.GROUP_BY,
self.tr('Group by expression (NULL to group all features)'),
defaultValue='NULL',
Expand Down

0 comments on commit f160847

Please sign in to comment.