2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgswmsconfigparser.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2015-05-29 10:19:51 +02:00
2016-07-19 11:45:47 +10:00
class QgsWmsConfigParser
2015-05-29 10:19:51 +02:00
{
2017-06-26 09:57:09 +02:00
%Docstring
*************************************************************************
*
This program is free software; you can redistribute it and/or modify *
it under the terms of the GNU General Public License as published by *
the Free Software Foundation; either version 2 of the License, or *
(at your option) any later version. *
*
**************************************************************************
%End
2015-05-29 10:19:51 +02:00
%TypeHeaderCode
#include "qgswmsconfigparser.h"
%End
public:
2017-05-01 16:42:33 +02:00
virtual void layersAndStylesCapabilities( QDomElement &parentElement, QDomDocument &doc, const QString &version, const QString &serviceUrl, bool fullProjectSettings = false ) const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Adds layer and style specific capabilities elements to the parent node. This includes the individual layers and styles, their description, native CRS, bounding boxes, etc.
\param fullProjectInformation If true: add extended project information (does not validate against WMS schema)*
%End
2015-05-29 10:19:51 +02:00
2017-06-26 09:57:09 +02:00
virtual QList<QgsMapLayer *> mapLayerFromStyle( const QString &lName, const QString &styleName, bool useCache = true ) const = 0;
%Docstring
Returns one or possibly several maplayers for a given layer name and style. If no layers/style are found, an empty list is returned
:rtype: list of QgsMapLayer
%End
2015-05-29 10:19:51 +02:00
2017-05-01 16:42:33 +02:00
virtual int layersAndStyles( QStringList &layers, QStringList &styles ) const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Fills a layer and a style list. The two list have the same number of entries and the style and the layer at a position belong together (similar to the HTTP parameters 'Layers' and 'Styles'. Returns 0 in case of success
:rtype: int
%End
2015-05-29 10:19:51 +02:00
2017-05-01 16:42:33 +02:00
virtual QDomDocument getStyle( const QString &styleName, const QString &layerName ) const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Returns the xml fragment of a style
:rtype: QDomDocument
%End
2015-05-29 10:19:51 +02:00
2017-05-01 16:42:33 +02:00
virtual QDomDocument getStyles( QStringList &layerList ) const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Returns the xml fragment of layers styles
:rtype: QDomDocument
%End
2015-05-29 10:19:51 +02:00
2017-05-01 16:42:33 +02:00
virtual QDomDocument describeLayer( QStringList &layerList, const QString &wfsHrefString, const QString &wcsHrefString ) const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Returns the xml fragment of layers styles description
:rtype: QDomDocument
%End
2015-05-29 10:19:51 +02:00
2016-11-25 15:42:53 +01:00
virtual QgsUnitTypes::RenderUnit outputUnits() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Returns if output are MM or PIXEL
:rtype: QgsUnitTypes.RenderUnit
%End
2015-05-29 10:19:51 +02:00
virtual QStringList identifyDisabledLayers() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Returns an ID-list of layers which are not queryable (comes from <properties> -> <Identify> -> <disabledLayers in the project file
:rtype: list of str
%End
2015-05-29 10:19:51 +02:00
virtual bool featureInfoWithWktGeometry() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
True if the feature info response should contain the wkt geometry for vector features
:rtype: bool
%End
2015-05-29 10:19:51 +02:00
2016-08-19 15:03:02 +02:00
virtual bool segmentizeFeatureInfoWktGeometry() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
True if the feature info wkt geometry is delivered with segmentized curve types
:rtype: bool
%End
2016-08-19 15:03:02 +02:00
2015-05-29 10:19:51 +02:00
virtual QHash<QString, QString> featureInfoLayerAliasMap() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Returns map with layer aliases for GetFeatureInfo (or 0 pointer if not supported). Key: layer name, Value: layer alias
:rtype: QHash<str, QString>
%End
2015-05-29 10:19:51 +02:00
2017-05-01 16:42:33 +02:00
virtual QString featureInfoDocumentElement( const QString &defaultValue ) const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: str
%End
2015-05-29 10:19:51 +02:00
virtual QString featureInfoDocumentElementNS() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: str
%End
2015-05-29 10:19:51 +02:00
virtual QString featureInfoSchema() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: str
%End
2015-05-29 10:19:51 +02:00
virtual bool featureInfoFormatSIA2045() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Return feature info in format SIA2045?
:rtype: bool
%End
2015-05-29 10:19:51 +02:00
2017-05-01 16:42:33 +02:00
virtual void drawOverlays( QPainter *p, int dpi, int width, int height ) const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Draw text annotation items from the QGIS projectfile
%End
2015-05-29 10:19:51 +02:00
2016-11-25 15:42:53 +01:00
virtual void loadLabelSettings() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Load PAL engine settings into global project instance
%End
2015-05-29 10:19:51 +02:00
virtual QStringList wfsLayerNames() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: list of str
%End
2015-05-29 10:19:51 +02:00
2017-05-01 16:42:33 +02:00
virtual void owsGeneralAndResourceList( QDomElement &parentElement, QDomDocument &doc, const QString &strHref ) const = 0;
2015-05-29 10:19:51 +02:00
virtual double legendBoxSpace() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: float
%End
2015-05-29 10:19:51 +02:00
virtual double legendLayerSpace() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: float
%End
2015-05-29 10:19:51 +02:00
virtual double legendLayerTitleSpace() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: float
%End
2015-05-29 10:19:51 +02:00
virtual double legendSymbolSpace() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: float
%End
2015-05-29 10:19:51 +02:00
virtual double legendIconLabelSpace() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: float
%End
2015-05-29 10:19:51 +02:00
virtual double legendSymbolWidth() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: float
%End
2015-05-29 10:19:51 +02:00
virtual double legendSymbolHeight() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: float
%End
2017-01-14 13:46:26 +10:00
virtual QFont legendLayerFont() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: QFont
%End
2017-01-14 13:46:26 +10:00
virtual QFont legendItemFont() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: QFont
%End
2015-05-29 10:19:51 +02:00
virtual double imageQuality() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: float
%End
2015-05-29 10:19:51 +02:00
2016-07-19 11:45:47 +10:00
virtual int wmsPrecision() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: int
%End
2015-05-29 10:19:51 +02:00
2017-06-26 09:57:09 +02:00
virtual bool wmsInspireActivated() const = 0;
%Docstring
:rtype: bool
%End
virtual void inspireCapabilities( QDomElement &parentElement, QDomDocument &doc ) const = 0;
%Docstring
Adds inspire capabilities to xml document. ParentElem usually is the <Capabilities> element
%End
2015-05-29 10:19:51 +02:00
2017-05-01 16:42:33 +02:00
QgsComposition *createPrintComposition( const QString &composerTemplate, const QgsMapSettings &mapSettings, const QMap< QString, QString > ¶meterMap, QStringList &highlightLayers ) const;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: QgsComposition
%End
2015-05-29 10:19:51 +02:00
2017-05-01 16:42:33 +02:00
virtual void printCapabilities( QDomElement &parentElement, QDomDocument &doc ) const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
Adds print capabilities to xml document. ParentElem usually is the <Capabilities> element
%End
2015-05-29 10:19:51 +02:00
virtual void setScaleDenominator( double denom ) = 0;
2017-05-01 16:42:33 +02:00
virtual void addExternalGMLData( const QString &layerName, QDomDocument *gmlDoc ) = 0;
2015-05-29 10:19:51 +02:00
virtual int nLayers() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: int
%End
2015-05-29 10:19:51 +02:00
2017-05-01 16:42:33 +02:00
virtual void serviceCapabilities( QDomElement &parentElement, QDomDocument &doc ) const = 0;
2015-05-29 10:19:51 +02:00
2016-07-19 11:45:47 +10:00
virtual bool useLayerIds() const = 0;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: bool
%End
2015-05-29 10:19:51 +02:00
2016-11-10 15:12:59 +01:00
virtual bool allowRequestDefinedDatasources() const;
2017-06-26 09:57:09 +02:00
%Docstring
:rtype: bool
%End
static QStringList addHighlightLayers( const QMap<QString, QString> ¶meterMap, QStringList &layerSet, const QString ¶meterPrefix = QString() );
%Docstring
Adds highlight layers to the layer registry and to the layer set. Returns the ids of the newly created layers (for later removal)
:rtype: list of str
%End
static void removeHighlightLayers( const QStringList &layerIds );
2016-11-10 15:12:59 +01:00
2015-05-29 10:19:51 +02:00
2017-06-26 09:57:09 +02:00
private:
2016-07-19 11:45:47 +10:00
QgsWmsConfigParser();
virtual ~QgsWmsConfigParser();
2015-05-29 10:19:51 +02:00
};
2017-06-26 09:57:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgswmsconfigparser.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/