Skip to content

Commit

Permalink
[sextante] fixed error introduced in fields calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jul 23, 2013
1 parent 4ccd818 commit 4c39d27
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/plugins/sextante/algs/FieldsCalculator.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4c39d27

Please sign in to comment.