Skip to content
Permalink
Browse files
[sextante] fixed error introduced in fields calculator
  • Loading branch information
volaya committed Jul 23, 2013
1 parent 4ccd818 commit 4c39d271305673770e51af892c086864ab93ecc0
Showing with 2 additions and 3 deletions.
  1. +2 −3 python/plugins/sextante/algs/FieldsCalculator.py
@@ -47,8 +47,8 @@ class FieldsCalculator(GeoAlgorithm):
FORMULA = "FORMULA"
OUTPUT_LAYER = "OUTPUT_LAYER"

TYPE_NAMES = ["Float", "Integer", "String", "Boolean"]
TYPES = [QVariant.Double, QVariant.Int, QVariant.String, QVariant.Bool]
TYPE_NAMES = ["Float", "Integer", "String"]
TYPES = [QVariant.Double, QVariant.Int, QVariant.String]


def defineCharacteristics(self):
@@ -96,7 +96,6 @@ def processAlgorithm(self, progress):
result = eval(expression)
except Exception:
result = None
#raise GeoAlgorithmExecutionException("Problem evaluation formula: Wrong field values or formula")
nElement += 1
inGeom = inFeat.geometry()
outFeat.setGeometry(inGeom)

0 comments on commit 4c39d27

Please sign in to comment.