Skip to content
Browse files
[processing] Fix grass point parameter evaluation
(cherry-picked from 44896c)
  • Loading branch information
nyalldawson committed Feb 26, 2018
1 parent 123c13d commit 167b6086ac0152666057e9172731e7dcdf306712
Showing with 7 additions and 1 deletion.
  1. +7 −1 python/plugins/processing/algs/grass7/
@@ -561,7 +561,13 @@ def processCommand(self, parameters, context, delOutputs=False):
value = '"{}"'.format(
self.parameterAsString(parameters, paramName, context)
# For numbers and points, we translate as a string
elif isinstance(param, QgsProcessingParameterPoint):
if self.parameterAsString(parameters, paramName, context):
# parameter specified, evaluate as point
# TODO - handle CRS transform
point = self.parameterAsPoint(parameters, paramName, context)
value = '{},{}'.format(point.x(), point.y())
# For numbers, we translate as a string
elif isinstance(param, (QgsProcessingParameterNumber,
value = self.parameterAsString(parameters, paramName, context)

0 comments on commit 167b608

Please sign in to comment.