Skip to content

Commit 1556555

Browse files
committedSep 16, 2016
[processing] allow all field types as unique ID field in Mean coords alg
(cherry picked from commit 75269d6)
1 parent 26f06b7 commit 1556555

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
@@ -49,11 +49,14 @@ def defineCharacteristics(self):
4949
self.addParameter(ParameterVector(self.POINTS,
5050
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY]))
5151
self.addParameter(ParameterTableField(self.WEIGHT,
52-
self.tr('Weight field'), MeanCoords.POINTS,
53-
ParameterTableField.DATA_TYPE_NUMBER, optional=True))
52+
self.tr('Weight field'),
53+
MeanCoords.POINTS,
54+
ParameterTableField.DATA_TYPE_NUMBER,
55+
optional=True))
5456
self.addParameter(ParameterTableField(self.UID,
55-
self.tr('Unique ID field'), MeanCoords.POINTS,
56-
ParameterTableField.DATA_TYPE_NUMBER, optional=True))
57+
self.tr('Unique ID field'),
58+
MeanCoords.POINTS,
59+
optional=True))
5760

5861
self.addOutput(OutputVector(MeanCoords.OUTPUT, self.tr('Mean coordinates')))
5962

0 commit comments

Comments
 (0)
Please sign in to comment.