QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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 "qgslayertreemodel.h"
28 #include "qgslayertree.h"
29 
30 namespace QgsWms
31 {
32 
36  QDomElement getLayersAndStylesCapabilitiesElement( QDomDocument &doc, QgsServerInterface *serverIface,
37  const QgsProject *project, const QString &version,
38  const QgsServerRequest &request, bool projectSettings );
39 
43  QDomElement getWFSLayersElement( QDomDocument &doc, const QgsProject *project );
44 
48  QDomElement getComposerTemplatesElement( QDomDocument &doc, const QgsProject *project );
49 
53  QDomElement getInspireCapabilitiesElement( QDomDocument &doc, const QgsProject *project );
54 
58  QDomElement getCapabilityElement( QDomDocument &doc, const QgsProject *project, const QString &version,
59  const QgsServerRequest &request, bool projectSettings );
60 
64  QDomElement getServiceElement( QDomDocument &doc, const QgsProject *project, const QString &version,
65  const QgsServerRequest &request );
66 
70  void writeGetCapabilities( QgsServerInterface *serverIface, const QgsProject *project,
71  const QString &version, const QgsServerRequest &request,
72  QgsServerResponse &response, bool projectSettings = false );
73 
83  QDomDocument getCapabilities( QgsServerInterface *serverIface, const QgsProject *project,
84  const QString &version, const QgsServerRequest &request,
85  bool projectSettings );
86 
87  bool hasQueryableChildren( const QgsLayerTreeNode *childNode, const QStringList &wmsRestrictedLayers );
88 } // namespace QgsWms
89 
90 #endif
bool hasQueryableChildren(const QgsLayerTreeNode *childNode, const QStringList &wmsRestrictedLayers)
QDomElement getServiceElement(QDomDocument &doc, const QgsProject *project, const QString &version, const QgsServerRequest &request)
Create Service element for get capabilities document.
QDomElement getLayersAndStylesCapabilitiesElement(QDomDocument &doc, QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, bool projectSettings)
Create element for get capabilities document.
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response, bool projectSettings)
Output GetCapabilities response.
QDomElement getComposerTemplatesElement(QDomDocument &doc, const QgsProject *project)
Create ComposerTemplates element for get capabilities document.
QDomDocument getCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, bool projectSettings)
Creates the WMS GetCapabilities XML document.
This class is a base class for nodes in a layer tree.
Reads and writes project states.
Definition: qgsproject.h:89
Median cut implementation.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins...
QDomElement getInspireCapabilitiesElement(QDomDocument &doc, const QgsProject *project)
Create InspireCapabilities element for get capabilities document.
QDomElement getCapabilityElement(QDomDocument &doc, const QgsProject *project, const QString &version, const QgsServerRequest &request, bool projectSettings)
Create Capability element for get capabilities document.
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...
SERVER_EXPORT QStringList wmsRestrictedLayers(const QgsProject &project)
Returns the restricted layer name list.
QDomElement getWFSLayersElement(QDomDocument &doc, const QgsProject *project)
Create WFSLayers element for get capabilities document.