QGIS API Documentation
3.43.0-Master (3ee7834ace6)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
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
#define MAXIMUM_OPENSTREETMAP_TILES_FETCH 5000
21
22
#include "
qgis_sip.h
"
23
#include "qgis_core.h"
24
#include "
qgis.h
"
25
26
class
QgsMapLayer
;
27
class
QgsRectangle
;
28
class
QgsCoordinateReferenceSystem
;
29
class
QgsCoordinateTransformContext
;
30
class
QgsAbstractDatabaseProviderConnection
;
31
class
QgsGeometry
;
32
38
class
CORE_EXPORT
QgsMapLayerUtils
39
{
40
41
public
:
42
48
static
QgsRectangle
combinedExtent(
const
QList<QgsMapLayer *> &layers,
const
QgsCoordinateReferenceSystem
&
crs
,
const
QgsCoordinateTransformContext
&transformContext );
49
55
static
QgsAbstractDatabaseProviderConnection
*databaseConnection(
const
QgsMapLayer
*layer )
SIP_FACTORY
;
56
64
static
bool
layerSourceMatchesPath(
const
QgsMapLayer
*layer,
const
QString &path );
65
74
static
bool
updateLayerSourcePath(
QgsMapLayer
*layer,
const
QString &newPath );
75
84
static
QList< QgsMapLayer * > sortLayersByType(
const
QList< QgsMapLayer * > &layers,
const
QList< Qgis::LayerType > &order );
85
98
static
QString launderLayerName(
const
QString &name );
99
105
static
bool
isOpenStreetMapLayer(
QgsMapLayer
*layer );
106
107
};
38
class
CORE_EXPORT
QgsMapLayerUtils
{
…
};
108
109
#endif
// QGSMAPLAYERUTILS_H
110
111
QgsAbstractDatabaseProviderConnection
The QgsAbstractDatabaseProviderConnection class provides common functionality for DB based connection...
Definition
qgsabstractdatabaseproviderconnection.h:48
QgsCoordinateReferenceSystem
This class represents a coordinate reference system (CRS).
Definition
qgscoordinatereferencesystem.h:201
QgsCoordinateTransformContext
Contains information about the context in which a coordinate transform is executed.
Definition
qgscoordinatetransformcontext.h:57
QgsGeometry
A geometry is the spatial representation of a feature.
Definition
qgsgeometry.h:162
QgsMapLayerUtils
Contains utility functions for working with map layers.
Definition
qgsmaplayerutils.h:39
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:76
QgsRectangle
A rectangle specified with double values.
Definition
qgsrectangle.h:44
qgis.h
qgis_sip.h
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
crs
const QgsCoordinateReferenceSystem & crs
Definition
qgswfsgetfeature.cpp:53
Generated on Mon Mar 24 2025 21:55:38 for QGIS API Documentation by
1.9.8