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 );
Manages QGIS Server properties for a map layer.
const QgsMapLayer * layer() const override
Gets the parent layer.
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.