Feature request #9020

Add usesGeometry argument in qgsfunction decorator for use Expression in Python

Added by Luiz Motta over 3 years ago. Updated almost 3 years ago.

Status:Closed Start Date:11/06/2013
Priority:Normal Due date:
Assigned to:- % Done:


Target version:Future Release - High Priority
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:


I would like fetch the geometry field inside the Expression's function.
At the moment, i can use the Geometry field for label, but, not populate the attributes inside table.

The method with name of function for QgsExpression (http://www.qgis.org/api/classQgsExpression_1_1Function.html), has the argument if is used the geometry field, but, the decorator for Python, use only 2 arguments, the number for argument and the name of group.

It is nice if the decorator have the argument if use the Geometry field, then, i can use the expression for all uses type in QGIS, example, populate attributes in table.

Associated revisions

Revision 45e712f1002984a30bd4676ae82f8a3ffb8c3467
Added by Nathan Woodrow almost 3 years ago

Merge pull request #1432 from gvellut/master

Fix #9020


Updated by Paolo Cavallini about 3 years ago

  • Target version changed from Version 2.0.0 to Future Release - High Priority

Updated by Nathan Woodrow almost 3 years ago

  • Status changed from Open to Closed

Also available in: Atom