Class: QgsBearingNumericFormat¶
A numeric formatter which returns a text representation of a direction/bearing.
Added in version 3.12.
Class Hierarchy¶
Base classes¶
A numeric formatter which returns a simple text representation of a value.  | 
|
A numeric formatter allows for formatting a numeric value for display, using a variety of different formatting techniques (e.g. as scientific notation, currency values, percentage values, etc)  | 
Methods
Returns the directional formatting option, which controls how bearing direction is described in the returned strings.  | 
|
Sets the directional formatting option, which controls how bearing direction is described in the returned strings.  | 
Attributes
- class qgis.core.QgsBearingNumericFormat[source]¶
 Bases:
QgsBasicNumericFormat- __init__()
 Default constructor
- __init__(a0: QgsBearingNumericFormat)
 - Parameters:
 
- class FormatDirectionOption¶
 Bases:
int
- UseRange0To180WithEWDirectionalSuffix = 0¶
 
- UseRange0To360 = 2¶
 
- UseRangeNegative180ToPositive180 = 1¶
 
- directionFormat(self) QgsBearingNumericFormat.FormatDirectionOption[source]¶
 Returns the directional formatting option, which controls how bearing direction is described in the returned strings.
See also
- Return type:
 
- setDirectionFormat(self, format: QgsBearingNumericFormat.FormatDirectionOption)[source]¶
 Sets the directional formatting option, which controls how bearing direction is described in the returned strings.
See also
- Parameters: