Class: QgsMapLayerUtils¶
- class qgis.core.QgsMapLayerUtils¶
Bases:
sip.wrapper
Contains utility functions for working with map 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
layers (Iterable[QgsMapLayer]) –
crs (QgsCoordinateReferenceSystem) –
transformContext (QgsCoordinateTransformContext) –
- Return type