1

I need to use a variable inside field calculator in modeler in Qgis and don't know how

@variable and variable doesn't work.

  • 1
    Welcome to GIS Se. As a new user, please take the Tour. Most good questions take a paragraph or three to explain. Please Edit this question to describe your issue more completely. For example, what variable are you refering too ? Why did you tag arcpy and qgis ? It's 2 different context – gisnside Sep 4 '17 at 14:37
4

Define a variable under project properties. enter image description here

Once the variable is created, use it in the field calculator with this syntax, but using the name of your variable.

@variable

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.