Skip to content

Commit

Permalink
Add missing sip bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 15, 2016
1 parent 5dd86aa commit 59b216b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python/core/qgsexpression.sip
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,22 @@ class QgsExpression
*/
void setDistanceUnits( QGis::UnitType unit );

/** Returns the desired areal units for calculations involving geomCalculator(), eg "$area".
* @note areas are only converted when a geomCalculator() has been set
* @note added in QGIS 2.14
* @see setAreaUnits()
* @see distanceUnits()
*/
QgsUnitTypes::AreaUnit areaUnits() const;

/** Sets the desired areal units for calculations involving geomCalculator(), eg "$area".
* @note areas are only converted when a geomCalculator() has been set
* @note added in QGIS 2.14
* @see areaUnits()
* @see setDistanceUnits()
*/
void setAreaUnits( QgsUnitTypes::AreaUnit unit );

/** This function currently replaces each expression between [% and %]
* in the string with the result of its evaluation on the feature
* passed as argument.
Expand Down

0 comments on commit 59b216b

Please sign in to comment.