QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
core
qgsmaplayerutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaplayerutils.h
3
-------------------
4
begin : May 2021
5
copyright : (C) 2021 Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
#ifndef QGSMAPLAYERUTILS_H
18
#define QGSMAPLAYERUTILS_H
19
20
#include "
qgis_sip.h
"
21
#include "qgis_core.h"
22
#include "
qgis.h
"
23
24
class
QgsMapLayer
;
25
class
QgsRectangle
;
26
class
QgsCoordinateReferenceSystem
;
27
class
QgsCoordinateTransformContext
;
28
class
QgsAbstractDatabaseProviderConnection
;
29
35
class
CORE_EXPORT
QgsMapLayerUtils
36
{
37
38
public
:
39
45
static
QgsRectangle
combinedExtent(
const
QList<QgsMapLayer *> &layers,
const
QgsCoordinateReferenceSystem
&
crs
,
const
QgsCoordinateTransformContext
&transformContext );
46
52
static
QgsAbstractDatabaseProviderConnection
*databaseConnection(
const
QgsMapLayer
*layer )
SIP_FACTORY
;
53
61
static
bool
layerSourceMatchesPath(
const
QgsMapLayer
*layer,
const
QString &path );
62
71
static
bool
updateLayerSourcePath(
QgsMapLayer
*layer,
const
QString &newPath );
72
81
static
QList< QgsMapLayer * > sortLayersByType(
const
QList< QgsMapLayer * > &layers,
const
QList< QgsMapLayerType > &order );
82
83
84
};
85
86
#endif // QGSMAPLAYERUTILS_H
87
88
QgsCoordinateTransformContext
Contains information about the context in which a coordinate transform is executed.
Definition:
qgscoordinatetransformcontext.h:57
crs
const QgsCoordinateReferenceSystem & crs
Definition:
qgswfsgetfeature.cpp:105
qgis.h
QgsRectangle
A rectangle specified with double values.
Definition:
qgsrectangle.h:41
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsMapLayerUtils
Contains utility functions for working with map layers.
Definition:
qgsmaplayerutils.h:35
qgis_sip.h
QgsCoordinateReferenceSystem
This class represents a coordinate reference system (CRS).
Definition:
qgscoordinatereferencesystem.h:211
QgsMapLayer
Base class for all map layer types. This is the base class for all map layer types (vector,...
Definition:
qgsmaplayer.h:72
QgsAbstractDatabaseProviderConnection
The QgsAbstractDatabaseProviderConnection class provides common functionality for DB based connection...
Definition:
qgsabstractdatabaseproviderconnection.h:44
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17