Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 501 Bytes

expressions.md

File metadata and controls

17 lines (10 loc) · 501 Bytes

Python Expressions

Exercise

Using Custom Python Expression Functions

NOTE: In a change from QGIS 2.14 to 2.18 it is necessary to add usesgeometry=True to the decorator in the QGIS custom select function to force QGIS to pass the feature's geometry to the function. So

@qgsfunction(args="auto", group='Custom')

becomes

@qgsfunction(args="auto", group='Custom', usesgeometry=True)