/
qgsmapboxglstyleconverter.sip.in
68 lines (51 loc) · 2.23 KB
/
qgsmapboxglstyleconverter.sip.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/vectortile/qgsmapboxglstyleconverter.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsMapBoxGlStyleConverter
{
%Docstring
Handles conversion of MapBox GL styles to QGIS vector tile renderers and labeling
settings.
.. versionadded:: 3.16
%End
%TypeHeaderCode
#include "qgsmapboxglstyleconverter.h"
%End
public:
QgsMapBoxGlStyleConverter( const QVariantMap &style );
%Docstring
Constructor for QgsMapBoxGlStyleConverter.
The specified MapBox GL ``style`` configuration will be converted.
%End
~QgsMapBoxGlStyleConverter();
QString errorMessage() const;
%Docstring
Returns a descriptive error message if an error was encountered during the style conversion,
or an empty string if no error was encountered.
%End
QgsVectorTileRenderer *renderer() const /Factory/;
%Docstring
Returns a new instance of a vector tile renderer representing the converted style,
or ``None`` if the style could not be converted successfully.
%End
QgsVectorTileLabeling *labeling() const /Factory/;
%Docstring
Returns a new instance of a vector tile labeling representing the converted style,
or ``None`` if the style could not be converted successfully.
%End
protected:
void parseLayers( const QVariantList &layers );
private:
QgsMapBoxGlStyleConverter( const QgsMapBoxGlStyleConverter &other );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/vectortile/qgsmapboxglstyleconverter.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/