18#ifndef QGSMAPLAYERSERVERPROPERTIES_H
19#define QGSMAPLAYERSERVERPROPERTIES_H
55 MetadataUrl(
const QString &url = QString(),
const QString &type = QString(),
const QString &format = QString() )
89 QList<QgsServerMetadataUrlProperties::MetadataUrl>
metadataUrls()
const {
return mMetadataUrls; };
96 void setMetadataUrls(
const QList<QgsServerMetadataUrlProperties::MetadataUrl> &metaUrls ) { mMetadataUrls = metaUrls; };
109 void writeXml( QDomNode &layer_node, QDomDocument &document )
const SIP_SKIP;
112 void readXml(
const QDomNode &layer_node )
SIP_SKIP;
150 Q_ENUM( PredefinedWmsDimensionName )
175 const QString &dimFieldName,
176 const QString &dimEndFieldName = QString(),
177 const QString &dimUnits = QString(),
178 const QString &dimUnitSymbol = QString(),
180 const QVariant &dimReferenceValue = QVariant() )
182 , fieldName( dimFieldName )
183 , endFieldName( dimEndFieldName )
185 , unitSymbol( dimUnitSymbol )
186 , defaultDisplayType( dimDefaultDisplayType )
187 , referenceValue( dimReferenceValue )
204 static QMap<int, QString> wmsDimensionDefaultDisplayLabels();
219 bool removeWmsDimension(
const QString &wmsDimName );
226 void setWmsDimensions(
const QList<QgsServerWmsDimensionProperties::WmsDimensionInfo> &dimensions );
232 const QList<QgsServerWmsDimensionProperties::WmsDimensionInfo> wmsDimensions()
const;
242 void writeXml( QDomNode &layer_node, QDomDocument &document )
const SIP_SKIP;
247 void readXml(
const QDomNode &layer_node )
SIP_SKIP;
296 void writeXml( QDomNode &layer_node, QDomDocument &document )
const;
302 void readXml(
const QDomNode &layer_node );
335 void setTitle(
const QString &title ) { mTitle = title; }
344 QString
title()
const {
return mTitle; }
353 void setAbstract(
const QString &abstract ) { mAbstract = abstract; }
391 void setDataUrl(
const QString &dataUrl ) { mDataUrl = dataUrl; }
479 QString mAttribution;
480 QString mAttributionUrl;
483 QString mDataUrlFormat;
486 QString mKeywordList;
Manages QGIS Server properties for a map layer.
void setDataUrl(const QString &dataUrl)
Sets the DataUrl of the layer used by QGIS Server in GetCapabilities request.
void setAbstract(const QString &abstract)
Sets the abstract of the layer used by QGIS Server in GetCapabilities request.
void setDataUrlFormat(const QString &dataUrlFormat)
Sets the DataUrl format of the layerused by QGIS Server in GetCapabilities request.
QString attribution() const
Returns the attribution of the layer used by QGIS Server in GetCapabilities request.
void setAttributionUrl(const QString &url)
Sets the attribution url of the layer used by QGIS Server in GetCapabilities request.
QString dataUrlFormat() const
Returns the DataUrl format of the layer used by QGIS Server in GetCapabilities request.
void setAttribution(const QString &attrib)
Sets the attribution of the layer used by QGIS Server in GetCapabilities request.
void setShortName(const QString &name)
Sets the short name of the layer used by QGIS Server to identify the layer.
QString title() const
Returns the title of the layer used by QGIS Server in GetCapabilities request.
QString dataUrl() const
Returns the DataUrl of the layer used by QGIS Server in GetCapabilities request.
QString keywordList() const
Returns the keyword list of the layerused by QGIS Server in GetCapabilities request.
QString shortName() const
Returns the short name of the layer used by QGIS Server to identify the layer.
const QgsMapLayer * layer() const override
Gets the parent layer.
void setTitle(const QString &title)
Sets the title of the layer used by QGIS Server in GetCapabilities request.
void setKeywordList(const QString &keywords)
Sets the keywords list of the layerused by QGIS Server in GetCapabilities request.
QString attributionUrl() const
Returns the attribution URL of the layer used by QGIS Server in GetCapabilities request.
QString abstract() const
Returns the abstract of the layerused by QGIS Server in GetCapabilities request.
Base class for all map layer types.
Manages QGIS Server properties for Wms dimensions.
PredefinedWmsDimensionName
Predefined/Restricted WMS Dimension name.
virtual const QgsMapLayer * layer() const =0
Gets the parent layer.
virtual ~QgsServerWmsDimensionProperties()=default
Convenient class for API compatibility.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Setting to define QGIS Server WMS Dimension.
WmsDimensionInfo(const QString &dimName, const QString &dimFieldName, const QString &dimEndFieldName=QString(), const QString &dimUnits=QString(), const QString &dimUnitSymbol=QString(), const int &dimDefaultDisplayType=QgsServerWmsDimensionProperties::WmsDimensionInfo::AllValues, const QVariant &dimReferenceValue=QVariant())
Constructor for WmsDimensionInfo.
DefaultDisplay
Selection behavior for QGIS Server WMS Dimension default display.
@ AllValues
Display all values of the dimension.