QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
qgswmsgetcapabilities.h
Go to the documentation of this file.
1/***************************************************************************
2 qgswmsgetcapabilities.h
3 -------------------------
4 begin : December 20 , 2016
5 copyright : (C) 2007 by Marco Hugentobler (original code)
6 (C) 2014 by Alessandro Pasotti (original code)
7 (C) 2016 by David Marteau
8 email : marco dot hugentobler at karto dot baug dot ethz dot ch
9 a dot pasotti at itopen dot it
10 david dot marteau at 3liz dot com
11 ***************************************************************************/
12
13/***************************************************************************
14 * *
15 * This program is free software; you can redistribute it and/or modify *
16 * it under the terms of the GNU General Public License as published by *
17 * the Free Software Foundation; either version 2 of the License, or *
18 * (at your option) any later version. *
19 * *
20 ***************************************************************************/
21#ifndef QGSWMSGETCAPABILITIES_H
22#define QGSWMSGETCAPABILITIES_H
23
24#include "qgslayertreenode.h"
25#include "qgslayertreegroup.h"
26#include "qgslayertreelayer.h"
27#include "qgslayertree.h"
28
29#include "qgswmsrequest.h"
30#include "qgswmslayerinfos.h"
31
32namespace QgsWms
33{
34
38 QDomElement getLayersAndStylesCapabilitiesElement( QDomDocument &doc,
39 QgsServerInterface *serverIface,
40 const QgsProject *project,
41 const QgsWmsRequest &request,
42 bool projectSettings );
43
47 QDomElement getWFSLayersElement( QDomDocument &doc, const QgsProject *project );
48
52 QDomElement getComposerTemplatesElement( QDomDocument &doc, const QgsProject *project );
53
57 QDomElement getInspireCapabilitiesElement( QDomDocument &doc, const QgsProject *project );
58
62 QDomElement getCapabilityElement( QDomDocument &doc, const QgsProject *project,
63 const QgsWmsRequest &request, bool projectSettings,
64 QgsServerInterface *serverIface );
65
69 QDomElement getServiceElement( QDomDocument &doc, const QgsProject *project,
70 const QgsWmsRequest &request, const QgsServerSettings *serverSettings );
71
76 const QgsProject *project,
77 const QgsWmsRequest &request,
78 QgsServerResponse &response,
79 bool projectSettings = false );
80
89 QDomDocument getCapabilities( QgsServerInterface *serverIface, const QgsProject *project,
90 const QgsWmsRequest &request,
91 bool projectSettings );
92
100 bool hasQueryableLayers( const QStringList &layerIds, const QMap< QString, QgsWmsLayerInfos > &wmsLayerInfos );
101
109 QgsRectangle combineWgs84BoundingRect( const QStringList &layerIds, const QMap< QString, QgsWmsLayerInfos > &wmsLayerInfos );
110
118 QMap<QString, QgsRectangle> combineCrsExtents( const QStringList &layerIds, const QMap< QString, QgsWmsLayerInfos > &wmsLayerInfos );
119
120} // namespace QgsWms
121
122#endif
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition: qgsproject.h:107
A rectangle specified with double values.
Definition: qgsrectangle.h:42
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...
Provides a way to retrieve settings by prioritizing according to environment variables,...
Median cut implementation.
QDomElement getWFSLayersElement(QDomDocument &doc, const QgsProject *project)
Create WFSLayers element for get capabilities document.
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response, bool projectSettings)
Output GetCapabilities response.
QDomElement getLayersAndStylesCapabilitiesElement(QDomDocument &doc, QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, bool projectSettings)
Create element for get capabilities document.
QDomElement getInspireCapabilitiesElement(QDomDocument &doc, const QgsProject *project)
Create InspireCapabilities element for get capabilities document.
QDomElement getComposerTemplatesElement(QDomDocument &doc, const QgsProject *project)
Create ComposerTemplates element for get capabilities document.
QDomElement getServiceElement(QDomDocument &doc, const QgsProject *project, const QgsWmsRequest &request, const QgsServerSettings *serverSettings)
Create Service element for get capabilities document.
QDomElement getCapabilityElement(QDomDocument &doc, const QgsProject *project, const QgsWmsRequest &request, bool projectSettings, QgsServerInterface *serverIface)
Create Capability element for get capabilities document.
QDomDocument getCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, bool projectSettings)
Creates the WMS GetCapabilities XML document.
bool hasQueryableLayers(const QStringList &layerIds, const QMap< QString, QgsWmsLayerInfos > &wmsLayerInfos)
Returns true if at least one layer from the layers ids is queryable.
QgsRectangle combineWgs84BoundingRect(const QStringList &layerIds, const QMap< QString, QgsWmsLayerInfos > &wmsLayerInfos)
Returns the combination of the WGS84 bounding rectangle of the layers from the list of layers ids.
QMap< QString, QgsRectangle > combineCrsExtents(const QStringList &layerIds, const QMap< QString, QgsWmsLayerInfos > &wmsLayerInfos)
Returns the combinations of the extent CRSes of the layers from the list of layers ids.