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
  • Loading branch information
alexbruy committed Sep 16, 2016
1 parent 8bf95fe commit 75269d6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions python/plugins/processing/algs/qgis/MeanCoords.py
Expand Up @@ -59,11 +59,14 @@ def defineCharacteristics(self):
self.addParameter(ParameterVector(self.POINTS,
self.tr('Input layer')))
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'), datatype=[dataobjects.TYPE_VECTOR_POINT]))

Expand Down

0 comments on commit 75269d6

Please sign in to comment.