mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[sextante] fixed error introduced in fields calculator
This commit is contained in:
parent
4ccd8184fc
commit
4c39d27130
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user