Class: QgsMapSettingsUtils

class qgis.core.QgsMapSettingsUtils

Bases: sip.wrapper

Utilities for map settings.

Methods

containsAdvancedEffects

Checks whether any of the layers attached to a map settings object contain advanced effects

worldFileContent

Creates the content of a world file.

worldFileParameters

Computes the six parameters of a world file.

containsAdvancedEffects(mapSettings: QgsMapSettings) → List[str]

Checks whether any of the layers attached to a map settings object contain advanced effects

Parameters

mapSettings (QgsMapSettings) – map settings

Return type

List[str]

worldFileContent(mapSettings: QgsMapSettings) → str

Creates the content of a world file.

Parameters

mapSettings (QgsMapSettings) – map settings

Note

Uses 17 places of precision for all numbers output

Return type

str

worldFileParameters(mapSettings: QgsMapSettings) → Tuple[float, float, float, float, float, float]

Computes the six parameters of a world file.

Parameters
  • mapSettings (QgsMapSettings) – map settings

  • b – the b parameter

  • c – the c parameter

  • d – the d parameter

  • e – the e parameter

  • f – the f parameter

New in version 3.10.

Return type

Tuple[float, float, float, float, float, float]