18 #ifndef QGSVECTORLAYERSERVERPROPERTIES_H
19 #define QGSVECTORLAYERSERVERPROPERTIES_H
22 #include "qgis_core.h"
54 Q_ENUM( PredefinedWmsDimensionName )
79 const QString &dimFieldName,
80 const QString &dimEndFieldName = QString(),
81 const QString &dimUnits = QString(),
82 const QString &dimUnitSymbol = QString(),
84 const QVariant &dimReferenceValue = QVariant() )
86 , fieldName( dimFieldName )
87 , endFieldName( dimEndFieldName )
89 , unitSymbol( dimUnitSymbol )
90 , defaultDisplayType( dimDefaultDisplayType )
91 , referenceValue( dimReferenceValue )
113 static QMap<int, QString> wmsDimensionDefaultDisplayLabels();
128 bool removeWmsDimension(
const QString &wmsDimName );
134 const QList<QgsVectorLayerServerProperties::WmsDimensionInfo> wmsDimensions()
const;
141 void writeXml( QDomNode &layer_node, QDomDocument &document )
const;
147 void readXml(
const QDomNode &layer_node );
154 QList<QgsVectorLayerServerProperties::WmsDimensionInfo> mWmsDimensions;
Manages QGIS Server properties for a vector layer.
PredefinedWmsDimensionName
Predefined/Restricted WMS Dimension name.
Represents a vector layer which manages a vector based data sets.
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=QgsVectorLayerServerProperties::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.