Sunday, 1 May 2016

python - What expressions for QGIS field-calculator?


I do not understand what language I have to use in field-calculator and labels on QGIS:


SQL or Python?


And where I can find the possible script/expressions to use?


in the image you can see the options for expressions in QGIS 1.8 italian version


Thanks


Expressions in Italian version



Answer



QGIS doesn't use SQL or Python (..yet) for it's field calculator. It uses it's own simple expression language. It is modeled off a SQL-like style but is not really any SQL dialect in particular.


All the functions can be found in the expression builder itself:



enter image description here


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...