QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
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
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
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
m
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
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
server
services
wms
qgswmsutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgswms.h
3
4
Define WMS service utility functions
5
------------------------------------
6
begin : December 20 , 2016
7
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
8
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
9
(C) 2016 by David Marteau
10
email : marco dot hugentobler at karto dot baug dot ethz dot ch
11
a dot pasotti at itopen dot it
12
david dot marteau at 3liz dot com
13
***************************************************************************/
14
15
/***************************************************************************
16
* *
17
* This program is free software; you can redistribute it and/or modify *
18
* it under the terms of the GNU General Public License as published by *
19
* the Free Software Foundation; either version 2 of the License, or *
20
* (at your option) any later version. *
21
* *
22
***************************************************************************/
23
#ifndef QGSWMSUTILS_H
24
#define QGSWMSUTILS_H
25
26
#include "
qgsmodule.h
"
27
28
class
QgsRectangle
;
29
35
namespace
QgsWms
37
{
39
enum
ImageOutputFormat
40
{
41
UNKN
,
42
PNG
,
43
PNG8
,
44
PNG16
,
45
PNG1
,
46
JPEG
,
47
WEBP
48
};
49
53
QUrl
serviceUrl
(
const
QgsServerRequest
&request,
const
QgsProject
*project );
54
59
ImageOutputFormat
parseImageFormat
(
const
QString &format );
60
64
void
writeImage
(
QgsServerResponse
&response, QImage &img,
const
QString &formatStr,
65
int
imageQuality = -1 );
66
}
// namespace QgsWms
67
68
#endif
69
70
QgsWms::parseImageFormat
ImageOutputFormat parseImageFormat(const QString &format)
Parse image format parameter.
Definition:
qgswmsutils.cpp:70
QgsWms::UNKN
@ UNKN
Definition:
qgswmsutils.h:41
QgsWms::WEBP
@ WEBP
Definition:
qgswmsutils.h:47
QgsWms::writeImage
void writeImage(QgsServerResponse &response, QImage &img, const QString &formatStr, int imageQuality)
Write image response.
Definition:
qgswmsutils.cpp:107
QgsServerRequest
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
Definition:
qgsserverrequest.h:39
QgsRectangle
A rectangle specified with double values.
Definition:
qgsrectangle.h:42
QgsWms::JPEG
@ JPEG
Definition:
qgswmsutils.h:46
QgsProject
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition:
qgsproject.h:95
QgsWms::PNG8
@ PNG8
Definition:
qgswmsutils.h:43
QgsWms::PNG16
@ PNG16
Definition:
qgswmsutils.h:44
QgsWms::PNG
@ PNG
Definition:
qgswmsutils.h:42
QgsWms
Median cut implementation.
Definition:
qgsdxfwriter.cpp:23
QgsWms::serviceUrl
QUrl serviceUrl(const QgsServerRequest &request, const QgsProject *project)
Returns WMS service URL.
Definition:
qgswmsutils.cpp:32
QgsWms::PNG1
@ PNG1
Definition:
qgswmsutils.h:45
qgsmodule.h
QgsServerResponse
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...
Definition:
qgsserverresponse.h:44
QgsWms::ImageOutputFormat
ImageOutputFormat
Supported image output format.
Definition:
qgswmsutils.h:40
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20