[sextante] fixed error introduced in fields calculator

This commit is contained in:
Victor Olaya 2013-07-23 17:18:01 +02:00
parent 4ccd8184fc
commit 4c39d27130

View File

@ -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 @@ class FieldsCalculator(GeoAlgorithm):
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)