Class: QgsProjectDisplaySettings¶
Contains settings and properties relating to how a
QgsProject
should display values such as map coordinates and
bearings.
Added in version 3.12.
Class Hierarchy¶
Base classes¶
Methods
Returns the project bearing's format, which controls how bearings associated with the project are displayed. |
|
Returns default coordinate axis order to use when displaying coordinates for the project. |
|
Returns the coordinate display CRS used derived from the coordinate type. |
|
Returns the coordinate custom CRS used when the project coordinate type is set to |
|
Returns default coordinate type for the project. |
|
Returns the project's geographic coordinate format, which controls how geographic coordinates associated with the project are displayed. |
|
Reads the settings's state from a DOM element. |
|
Resets the settings to a default state. |
|
Sets the project bearing format, which controls how bearings associated with the project are displayed. |
|
Sets the default coordinate axis order to use when displaying coordinates for the project. |
|
Sets the coordinate custom CRS used when the project coordinate type is set to |
|
Sets the default coordinate type for the project. |
|
Sets the project geographic coordinate format, which controls how geographic coordinates associated with the project are displayed. |
|
Returns a DOM element representing the settings. |
Signals
Emitted when the bearing format changes. |
|
Emitted when the default coordinate axis order changes. |
|
Emitted when the coordinate CRS changes. |
|
Emitted when the coordinate custom CRS changes. |
|
Emitted when the default coordinate format changes. |
|
Emitted when the geographic coordinate format changes. |
- class qgis.core.QgsProjectDisplaySettings[source]¶
Bases:
QObject
- __init__(parent: QObject | None = None)
Constructor for QgsProjectDisplaySettings with the specified
parent
object.- Parameters:
parent (Optional[QObject] = None)
- bearingFormat(self) QgsBearingNumericFormat | None [source]¶
Returns the project bearing’s format, which controls how bearings associated with the project are displayed.
See also
See also
- Return type:
Optional[QgsBearingNumericFormat]
- coordinateAxisOrder(self) Qgis.CoordinateOrder [source]¶
Returns default coordinate axis order to use when displaying coordinates for the project.
See also
See also
Added in version 3.28.
- Return type:
- signal coordinateAxisOrderChanged[source]¶
Emitted when the default coordinate axis order changes.
See also
See also
Added in version 3.28.
- coordinateCrs(self) QgsCoordinateReferenceSystem [source]¶
Returns the coordinate display CRS used derived from the coordinate type.
See also
Note
if not parented to a project object, an invalid CRS will be returned.
Added in version 3.28.
- Return type:
- signal coordinateCrsChanged[source]¶
Emitted when the coordinate CRS changes.
See also
See also
Added in version 3.28.
- coordinateCustomCrs(self) QgsCoordinateReferenceSystem [source]¶
Returns the coordinate custom CRS used when the project coordinate type is set to
Qgis
.CoordinateDisplayType.CustomCrs.See also
Added in version 3.28.
- Return type:
- signal coordinateCustomCrsChanged[source]¶
Emitted when the coordinate custom CRS changes.
See also
See also
Added in version 3.28.
- coordinateType(self) Qgis.CoordinateDisplayType [source]¶
Returns default coordinate type for the project.
See also
Added in version 3.28.
- Return type:
- signal coordinateTypeChanged[source]¶
Emitted when the default coordinate format changes.
See also
See also
Added in version 3.28.
- geographicCoordinateFormat(self) QgsGeographicCoordinateNumericFormat | None [source]¶
Returns the project’s geographic coordinate format, which controls how geographic coordinates associated with the project are displayed.
See also
See also
- Return type:
Optional[QgsGeographicCoordinateNumericFormat]
- signal geographicCoordinateFormatChanged[source]¶
Emitted when the geographic coordinate format changes.
See also
See also
- readXml(self, element: QDomElement, context: QgsReadWriteContext) bool [source]¶
Reads the settings’s state from a DOM element.
See also
- Parameters:
element (QDomElement)
context (QgsReadWriteContext)
- Return type:
bool
- setBearingFormat(self, format: QgsBearingNumericFormat | None)[source]¶
Sets the project bearing
format
, which controls how bearings associated with the project are displayed.Ownership of
format
is transferred to the settings.See also
See also
- Parameters:
format (Optional[QgsBearingNumericFormat])
- setCoordinateAxisOrder(self, order: Qgis.CoordinateOrder)[source]¶
Sets the default coordinate axis
order
to use when displaying coordinates for the project.See also
See also
Added in version 3.28.
- Parameters:
order (Qgis.CoordinateOrder)
- setCoordinateCustomCrs(self, crs: QgsCoordinateReferenceSystem)[source]¶
Sets the coordinate custom CRS used when the project coordinate type is set to
Qgis
.CoordinateDisplayType.CustomCrs.See also
Added in version 3.28.
- Parameters:
- setCoordinateType(self, type: Qgis.CoordinateDisplayType)[source]¶
Sets the default coordinate
type
for the project.See also
Added in version 3.28.
- Parameters:
type (Qgis.CoordinateDisplayType)
- setGeographicCoordinateFormat(self, format: QgsGeographicCoordinateNumericFormat | None)[source]¶
Sets the project geographic coordinate
format
, which controls how geographic coordinates associated with the project are displayed.Ownership of
format
is transferred to the settings.See also
See also
Added in version 3.26.
- Parameters:
format (Optional[QgsGeographicCoordinateNumericFormat])
- writeXml(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement [source]¶
Returns a DOM element representing the settings.
See also
- Parameters:
doc (QDomDocument)
context (QgsReadWriteContext)
- Return type:
QDomElement