Skip to content
Permalink
Browse files

[processing] allow all field types as unique ID field in Mean coords alg

(cherry picked from commit 75269d6)
  • Loading branch information
alexbruy committed Sep 16, 2016
1 parent 901550f commit 5be15911142d4e050f6241526db95073e68a90e2
Showing with 7 additions and 4 deletions.
  1. +7 −4 python/plugins/processing/algs/qgis/MeanCoords.py
@@ -59,11 +59,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')))

0 comments on commit 5be1591

Please sign in to comment.
You can’t perform that action at this time.