QGIS API Documentation  3.14.0-Pi (9f7028fd23)
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 namespace QgsWms
30 {
31 
35  QDomElement getLayersAndStylesCapabilitiesElement( QDomDocument &doc, QgsServerInterface *serverIface,
36  const QgsProject *project, const QString &version,
37  const QgsServerRequest &request, bool projectSettings );
38 
42  QDomElement getWFSLayersElement( QDomDocument &doc, const QgsProject *project );
43 
47  QDomElement getComposerTemplatesElement( QDomDocument &doc, const QgsProject *project );
48 
52  QDomElement getInspireCapabilitiesElement( QDomDocument &doc, const QgsProject *project );
53 
57  QDomElement getCapabilityElement( QDomDocument &doc, const QgsProject *project, const QString &version,
58  const QgsServerRequest &request, bool projectSettings );
59 
63  QDomElement getServiceElement( QDomDocument &doc, const QgsProject *project, const QString &version,
64  const QgsServerRequest &request );
65 
69  void writeGetCapabilities( QgsServerInterface *serverIface, const QgsProject *project,
70  const QString &version, const QgsServerRequest &request,
71  QgsServerResponse &response, bool projectSettings = false );
72 
82  QDomDocument getCapabilities( QgsServerInterface *serverIface, const QgsProject *project,
83  const QString &version, const QgsServerRequest &request,
84  bool projectSettings );
85 
86  bool hasQueryableChildren( const QgsLayerTreeNode *childNode, const QStringList &wmsRestrictedLayers );
87 } // namespace QgsWms
88 
89 #endif
QgsLayerTreeNode
Definition: qgslayertreenode.h:74
QgsWms::hasQueryableChildren
bool hasQueryableChildren(const QgsLayerTreeNode *childNode, const QStringList &wmsRestrictedLayers)
Definition: qgswmsgetcapabilities.cpp:2037
QgsWms::getWFSLayersElement
QDomElement getWFSLayersElement(QDomDocument &doc, const QgsProject *project)
Create WFSLayers element for get capabilities document.
Definition: qgswmsgetcapabilities.cpp:812
QgsWms::getServiceElement
QDomElement getServiceElement(QDomDocument &doc, const QgsProject *project, const QString &version, const QgsServerRequest &request)
Create Service element for get capabilities document.
Definition: qgswmsgetcapabilities.cpp:274
qgslayertreelayer.h
QgsServerRequest
Definition: qgsserverrequest.h:38
QgsProject
Definition: qgsproject.h:92
QgsWms::getLayersAndStylesCapabilitiesElement
QDomElement getLayersAndStylesCapabilitiesElement(QDomDocument &doc, QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, bool projectSettings)
Create element for get capabilities document.
Definition: qgswmsgetcapabilities.cpp:842
qgslayertreegroup.h
QgsServerProjectUtils::wmsRestrictedLayers
SERVER_EXPORT QStringList wmsRestrictedLayers(const QgsProject &project)
Returns the restricted layer name list.
Definition: qgsserverprojectutils.cpp:311
QgsWms::getCapabilities
QDomDocument getCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, bool projectSettings)
Creates the WMS GetCapabilities XML document.
Definition: qgswmsgetcapabilities.cpp:185
QgsWms::writeGetCapabilities
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response, bool projectSettings)
Output GetCapabilities response.
Definition: qgswmsgetcapabilities.cpp:110
qgslayertree.h
QgsWms::getComposerTemplatesElement
QDomElement getComposerTemplatesElement(QDomDocument &doc, const QgsProject *project)
Create ComposerTemplates element for get capabilities document.
Definition: qgswmsgetcapabilities.cpp:697
QgsWms
WMS implementation.
Definition: qgsdxfwriter.cpp:22
QgsWms::getCapabilityElement
QDomElement getCapabilityElement(QDomDocument &doc, const QgsProject *project, const QString &version, const QgsServerRequest &request, bool projectSettings)
Create Capability element for get capabilities document.
Definition: qgswmsgetcapabilities.cpp:449
qgslayertreenode.h
QgsWms::getInspireCapabilitiesElement
QDomElement getInspireCapabilitiesElement(QDomDocument &doc, const QgsProject *project)
Create InspireCapabilities element for get capabilities document.
Definition: qgswmsgetcapabilities.cpp:591
QgsServerInterface
Definition: qgsserverinterface.h:60
QgsServerResponse
Definition: qgsserverresponse.h:43