Skip to content

Commit

Permalink
[processing] allow all field types as unique ID field in Mean coords alg
Browse files Browse the repository at this point in the history
(cherry picked from commit 75269d6)
  • Loading branch information
alexbruy committed Sep 16, 2016
1 parent 26f06b7 commit 1556555
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions python/plugins/processing/algs/qgis/MeanCoords.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ def defineCharacteristics(self):
self.addParameter(ParameterVector(self.POINTS,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY]))
self.addParameter(ParameterTableField(self.WEIGHT,
self.tr('Weight field'), MeanCoords.POINTS,
ParameterTableField.DATA_TYPE_NUMBER, optional=True))
self.tr('Weight field'),
MeanCoords.POINTS,
ParameterTableField.DATA_TYPE_NUMBER,
optional=True))
self.addParameter(ParameterTableField(self.UID,
self.tr('Unique ID field'), MeanCoords.POINTS,
ParameterTableField.DATA_TYPE_NUMBER, optional=True))
self.tr('Unique ID field'),
MeanCoords.POINTS,
optional=True))

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

Expand Down

0 comments on commit 1556555

Please sign in to comment.