Best practices for writing Python QGIS Expression Functions
Recently there have been some questions and discussions about python based expression functions and how parameters like usesGeometry need to be used. So I thought I’d quickly write down how this works. There is some intelligence If the geometry or a column is passed in as a parameter you do not need to request it manually, you can even specify explicitly that you do not require the geometry or a column here. @qgsfunction(args=’auto’, group=’Custom’, usesGeometry=False, referencedColumns=[]) def Read more…