Skip to content

Commit 59b216b

Browse files
committed
Add missing sip bindings
1 parent 5dd86aa commit 59b216b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

python/core/qgsexpression.sip

+16
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,22 @@ class QgsExpression
176176
*/
177177
void setDistanceUnits( QGis::UnitType unit );
178178

179+
/** Returns the desired areal units for calculations involving geomCalculator(), eg "$area".
180+
* @note areas are only converted when a geomCalculator() has been set
181+
* @note added in QGIS 2.14
182+
* @see setAreaUnits()
183+
* @see distanceUnits()
184+
*/
185+
QgsUnitTypes::AreaUnit areaUnits() const;
186+
187+
/** Sets the desired areal units for calculations involving geomCalculator(), eg "$area".
188+
* @note areas are only converted when a geomCalculator() has been set
189+
* @note added in QGIS 2.14
190+
* @see areaUnits()
191+
* @see setDistanceUnits()
192+
*/
193+
void setAreaUnits( QgsUnitTypes::AreaUnit unit );
194+
179195
/** This function currently replaces each expression between [% and %]
180196
* in the string with the result of its evaluation on the feature
181197
* passed as argument.

0 commit comments

Comments
 (0)