QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
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
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
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 Functions
3
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
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
x
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
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
vectortile
qgsvtpktiles.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvtpktiles.h
3
--------------------------------------
4
Date : March 2022
5
Copyright : (C) 2022 by Nyall Dawson
6
Email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSVTPKTILES_H
17
#define QGSVTPKTILES_H
18
19
#include "qgis_core.h"
20
21
#include "sqlite3.h"
22
#include "
qgsvectortilematrixset.h
"
23
24
#include <QVariantMap>
25
26
class
QImage;
27
class
QgsRectangle
;
28
class
QgsVectorTileMatrixSet
;
29
class
QgsLayerMetadata
;
30
37
class
CORE_EXPORT
QgsVtpkTiles
38
{
39
public
:
41
explicit
QgsVtpkTiles
(
const
QString &filename );
42
43
#ifndef SIP_RUN
44
QgsVtpkTiles
(
const
QgsVtpkTiles
&other ) =
delete
;
47
QgsVtpkTiles
&operator=(
const
QgsVtpkTiles
&other ) =
delete
;
48
#endif
49
~
QgsVtpkTiles
();
50
52
bool
open();
53
55
bool
isOpen()
const
;
56
62
QVariantMap metadata()
const
;
63
67
QVariantMap styleDefinition()
const
;
68
72
QVariantMap spriteDefinition()
const
;
73
77
QImage spriteImage()
const
;
78
82
QgsLayerMetadata
layerMetadata()
const
;
83
87
QgsVectorTileMatrixSet
matrixSet()
const
;
88
92
QgsCoordinateReferenceSystem
crs
()
const
;
93
97
QgsRectangle
extent(
const
QgsCoordinateTransformContext
&context )
const
;
98
102
QByteArray tileData(
int
z,
int
x,
int
y );
103
104
private
:
105
106
#ifdef SIP_RUN
107
QgsVtpkTiles
(
const
QgsVtpkTiles
&other );
109
#endif
110
111
QString mFilename;
112
struct
zip
*mZip =
nullptr
;
113
mutable
QVariantMap mMetadata;
114
mutable
QgsVectorTileMatrixSet
mMatrixSet;
115
mutable
int
mPacketSize = -1;
116
};
117
118
119
#endif // QGSVTPKTILES_H
QgsCoordinateTransformContext
Contains information about the context in which a coordinate transform is executed.
Definition:
qgscoordinatetransformcontext.h:57
QgsVectorTileMatrixSet
Encapsulates properties of a vector tile matrix set, including tile origins and scaling information.
Definition:
qgsvectortilematrixset.h:31
qgsvectortilematrixset.h
crs
const QgsCoordinateReferenceSystem & crs
Definition:
qgswfsgetfeature.cpp:105
QgsLayerMetadata
A structured metadata store for a map layer.
Definition:
qgslayermetadata.h:56
QgsVtpkTiles
Utility class for reading and writing ESRI VTPK files.
Definition:
qgsvtpktiles.h:37
QgsRectangle
A rectangle specified with double values.
Definition:
qgsrectangle.h:41
QgsCoordinateReferenceSystem
This class represents a coordinate reference system (CRS).
Definition:
qgscoordinatereferencesystem.h:211
QgsZipUtils::zip
CORE_EXPORT bool zip(const QString &zip, const QStringList &files)
Zip the list of files in the zip file.
Definition:
qgsziputils.cpp:135
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17