Sunday 9 October 2016

Graphical modeler in QGIS 3.0.3 - Access Vector Field in Calculator


I want to create an algorithm with the graphical modeler in QGIS 3.0.3 where i define one Vector Layer and a Vector Field from this Layer as my inputvariables. Then i want to access the field-values in the field calculator. For example: formula in fieldcalculator:


($area/1000000) * INPUT_FIELD

But this won't work. The fieldcalculator doesn't know or can't access the field values.


When i use an algorithm and define the INPUT_FIELD as an input-variable it works, but i can't access the field-values in the calculator.


How can i acess the field-values from my input Vector Field in the fieldcalculator?





No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...