Skip to content

Commit f160847

Browse files
committed
[processing] allow geometryless layers as input in aggregate alg.
1 parent f3b15be commit f160847

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/plugins/processing/algs/qgis/Aggregate.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
QgsField,
3535
QgsFields,
3636
QgsGeometry,
37+
QgsProcessing,
3738
QgsProcessingParameterDefinition,
3839
QgsProcessingParameterExpression,
3940
QgsProcessingParameterFeatureSink,
@@ -68,7 +69,8 @@ def displayName(self):
6869

6970
def initAlgorithm(self, config=None):
7071
self.addParameter(QgsProcessingParameterFeatureSource(self.INPUT,
71-
self.tr('Input layer')))
72+
self.tr('Input layer'),
73+
types=[QgsProcessing.TypeVector]))
7274
self.addParameter(QgsProcessingParameterExpression(self.GROUP_BY,
7375
self.tr('Group by expression (NULL to group all features)'),
7476
defaultValue='NULL',

0 commit comments

Comments
 (0)