Skip to content
Permalink
Browse files

[processing] allow geometryless layers as input in aggregate alg.

  • Loading branch information
nirvn committed Sep 18, 2018
1 parent f3b15be commit f160847ebca6df97590b44008e8bc5c97d32d335
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/algs/qgis/Aggregate.py
@@ -34,6 +34,7 @@
QgsField,
QgsFields,
QgsGeometry,
QgsProcessing,
QgsProcessingParameterDefinition,
QgsProcessingParameterExpression,
QgsProcessingParameterFeatureSink,
@@ -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',

0 comments on commit f160847

Please sign in to comment.
You can’t perform that action at this time.