File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,22 @@ class QgsExpression
176
176
*/
177
177
void setDistanceUnits( QGis::UnitType unit );
178
178
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
+
179
195
/** This function currently replaces each expression between [% and %]
180
196
* in the string with the result of its evaluation on the feature
181
197
* passed as argument.
You can’t perform that action at this time.
0 commit comments