Class: QgsMapSettingsUtils

class qgis.core.QgsMapSettingsUtils

Bases: sip.wrapper

Utilities for map settings.

New in version 3.0: Enums

EffectsCheckFlag

Bases: enum.IntEnum

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.

class EffectsCheckFlag(value)

Bases: enum.IntEnum

Flags for controlling the behavior of containsAdvancedEffects()

New in version 3.14.

  • IgnoreGeoPdfSupportedEffects: Ignore advanced effects which are supported in GeoPDF exports

IgnoreGeoPdfSupportedEffects = 1
class EffectsCheckFlags
class EffectsCheckFlags(Union[QgsMapSettingsUtils.EffectsCheckFlags, QgsMapSettingsUtils.EffectsCheckFlag])None
class EffectsCheckFlags(QgsMapSettingsUtils.EffectsCheckFlags)None

Bases: sip.wrapper

containsAdvancedEffects(mapSettings: QgsMapSettings, flags: Union[QgsMapSettingsUtils.EffectsCheckFlags, QgsMapSettingsUtils.EffectsCheckFlag] = QgsMapSettingsUtils.EffectsCheckFlags())List[str]

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

The optional flags argument can be used to fine-tune the check behavior.

Parameters
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

Return type

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

Returns

  • a: the a parameter

  • 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.