Class: QgsBearingNumericFormat¶
- class qgis.core.QgsBearingNumericFormat¶
Bases:
QgsBasicNumericFormat
Default constructor
QgsBearingNumericFormat(
QgsBearingNumericFormat
)A numeric formatter which returns a text representation of a direction/bearing.
Methods
- rtype
QgsBearingNumericFormat
- param context
- param configuration
Returns the directional formatting option, which controls how bearing direction is described in the returned strings.
- param value
- rtype
str
- param configuration
Sets the directional formatting option, which controls how bearing direction is described in the returned strings.
- rtype
int
- rtype
float
- rtype
str
Attributes
- class FormatDirectionOption¶
Bases:
int
- UseRange0To180WithEWDirectionalSuffix = 0¶
- UseRange0To360 = 2¶
- UseRangeNegative180ToPositive180 = 1¶
- clone(self) → QgsBearingNumericFormat¶
- Return type
- configuration(self, context: QgsReadWriteContext) → Dict[str, Any]¶
- Parameters
context (QgsReadWriteContext) –
- Return type
Dict[str, Any]
- create(self, configuration: Dict[str, Any], context: QgsReadWriteContext) → QgsNumericFormat¶
- Parameters
configuration (Dict[str) –
context (QgsReadWriteContext) –
- Return type
- directionFormat(self) → QgsBearingNumericFormat.FormatDirectionOption¶
Returns the directional formatting option, which controls how bearing direction is described in the returned strings.
See also
- Return type
- formatDouble(self, value: float, context: QgsNumericFormatContext) → str¶
- Parameters
value (float) –
context (QgsNumericFormatContext) –
- Return type
str
- id(self) → str¶
- Return type
str
- setConfiguration(self, configuration: Dict[str, Any], context: QgsReadWriteContext)¶
- Parameters
configuration (Dict[str) –
context (QgsReadWriteContext) –
- setDirectionFormat(self, format: QgsBearingNumericFormat.FormatDirectionOption)¶
Sets the directional formatting option, which controls how bearing direction is described in the returned strings.
See also
- Parameters
- sortKey(self) → int¶
- Return type
int
- suggestSampleValue(self) → float¶
- Return type
float
- visibleName(self) → str¶
- Return type
str