Skip to content

Commit 75269d6

Browse files
committed
[processing] allow all field types as unique ID field in Mean coords alg
1 parent 8bf95fe commit 75269d6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,14 @@ def defineCharacteristics(self):
5959
self.addParameter(ParameterVector(self.POINTS,
6060
self.tr('Input layer')))
6161
self.addParameter(ParameterTableField(self.WEIGHT,
62-
self.tr('Weight field'), MeanCoords.POINTS,
63-
ParameterTableField.DATA_TYPE_NUMBER, optional=True))
62+
self.tr('Weight field'),
63+
MeanCoords.POINTS,
64+
ParameterTableField.DATA_TYPE_NUMBER,
65+
optional=True))
6466
self.addParameter(ParameterTableField(self.UID,
65-
self.tr('Unique ID field'), MeanCoords.POINTS,
66-
ParameterTableField.DATA_TYPE_NUMBER, optional=True))
67+
self.tr('Unique ID field'),
68+
MeanCoords.POINTS,
69+
optional=True))
6770

6871
self.addOutput(OutputVector(MeanCoords.OUTPUT, self.tr('Mean coordinates'), datatype=[dataobjects.TYPE_VECTOR_POINT]))
6972

0 commit comments

Comments
 (0)