Feature request #9020

Add usesGeometry argument in qgsfunction decorator for use Expression in Python

Added by Luiz Motta about 11 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Expressions
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:17675

Description

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 45e712f1
Added by Nathan Woodrow over 10 years ago

Merge pull request #1432 from gvellut/master

Fix #9020

History

#1 Updated by Paolo Cavallini almost 11 years ago

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

#2 Updated by Nathan Woodrow over 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF