Advanced field calculations
QGIS Desktop provides powerful field-calculation functionality. In the field calculator, advanced mathematical, geometry, string, date and time, type conversion, and conditional functions are available for use. Leveraging these advanced functions along with standard operators allows for some powerful field calculations.
This section will explain the field calculator interface in detail, followed by multiple examples of advanced field calculations from a variety of functional areas. It is assumed that you know the basics of field calculations and common operators.
Exploring the field calculator interface
The field calculator can be opened in three ways, which are as follows:
Open the attribute table of the layer whose details you wish to calculate and then click on the field
calculator button ()
on the attribute table toolbarOpen the attribute table of the layer whose details you wish to calculate and then press Ctrl + I on your keyboard
Select the layer whose details...