Skip to content
Permalink
Browse files

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

  • Loading branch information
alexbruy committed Sep 16, 2016
1 parent 8bf95fe commit 75269d66b9d79c3b4a2b18bd9626c22840aa6713
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')))
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]))

0 comments on commit 75269d6

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