Class: QgsLocalDefaultSettings¶
- class qgis.core.QgsLocalDefaultSettings¶
Bases:
sip.wrapper
Contains local default settings which should be respected when creating new objects such as
QgsProjects
.This class contains a variety of default setting values. These values are local, profile specific settings which may have been configured or tweaked by the user (as opposed to global, fixed default settings).
The values encapsulated here should be inherited when creating new objects such as new QGIS projects.
Typically, the
QgsSettings
backend is used to store and retrieve these local settings.New in version 3.12:
Methods
Returns the default bearing format, which controls how angular bearings are displayed.
Returns the default geographic coordinate format, which controls how geographic coordinates are displayed.
Sets the default bearing
format
, which controls how angular bearings are displayed.Sets the default geographic coordinate
format
, which controls how geographic coordinates are displayed.- bearingFormat() QgsBearingNumericFormat ¶
Returns the default bearing format, which controls how angular bearings are displayed.
This method returns a new object and the caller takes ownership of the returned value.
See also
- Return type
- geographicCoordinateFormat() QgsGeographicCoordinateNumericFormat ¶
Returns the default geographic coordinate format, which controls how geographic coordinates are displayed.
This method returns a new object and the caller takes ownership of the returned value.
See also
New in version 3.26.
- Return type
- setBearingFormat(format: QgsBearingNumericFormat)¶
Sets the default bearing
format
, which controls how angular bearings are displayed.See also
- Parameters
format (QgsBearingNumericFormat) –
- setGeographicCoordinateFormat(format: QgsGeographicCoordinateNumericFormat)¶
Sets the default geographic coordinate
format
, which controls how geographic coordinates are displayed.See also
New in version 3.26.
- Parameters
format (QgsGeographicCoordinateNumericFormat) –