Skip to content

Commit 37531ec

Browse files
committed
[processing] allow all field types as unique ID field in Mean coords alg
(cherry picked from commit 75269d6)
1 parent c603134 commit 37531ec

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

+7-4
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'), [ParameterVector.VECTOR_TYPE_ANY]))
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')))
6972

0 commit comments

Comments
 (0)