mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsmaplayerutils.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
class QgsMapLayerUtils
|
|
{
|
|
%Docstring(signature="appended")
|
|
Contains utility functions for working with map layers.
|
|
|
|
.. versionadded:: 3.20
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsmaplayerutils.h"
|
|
%End
|
|
public:
|
|
|
|
static QgsRectangle combinedExtent( const QList<QgsMapLayer *> &layers, const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transformContext );
|
|
%Docstring
|
|
Returns the combined extent of a list of ``layers``.
|
|
|
|
The ``crs`` argument specifies the desired coordinate reference system for the combined extent.
|
|
%End
|
|
|
|
static QgsAbstractDatabaseProviderConnection *databaseConnection( const QgsMapLayer *layer ) /Factory/;
|
|
%Docstring
|
|
Creates and returns the (possibly NULL) database connection for a ``layer``.
|
|
Ownership is transferred to the caller.
|
|
|
|
.. versionadded:: 3.22
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsmaplayerutils.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|