mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
[processing] allow geometryless layers as input in aggregate alg.
This commit is contained in:
parent
f3b15be9e5
commit
f160847ebc
@ -34,6 +34,7 @@ from qgis.core import (
|
||||
QgsField,
|
||||
QgsFields,
|
||||
QgsGeometry,
|
||||
QgsProcessing,
|
||||
QgsProcessingParameterDefinition,
|
||||
QgsProcessingParameterExpression,
|
||||
QgsProcessingParameterFeatureSink,
|
||||
@ -68,7 +69,8 @@ class Aggregate(QgisAlgorithm):
|
||||
|
||||
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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user