Class: QgsMapLayerUtils

class qgis.core.QgsMapLayerUtils

Bases: sip.wrapper

Contains utility functions for working with map layers.

New in version 3.20:

Methods

combinedExtent

Returns the combined extent of a list of layers.

combinedExtent(layers: Iterable[QgsMapLayer], crs: QgsCoordinateReferenceSystem, transformContext: QgsCoordinateTransformContext) QgsRectangle

Returns the combined extent of a list of layers.

The crs argument specifies the desired coordinate reference system for the combined extent.

Parameters
Return type

QgsRectangle