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; };
 
  114    void writeXml( QDomNode &layerNode, QDomDocument &document ) 
const SIP_SKIP;
 
  117    void readXml( 
const QDomNode &layerNode ) 
SIP_SKIP;
 
 
  155    Q_ENUM( PredefinedWmsDimensionName )
 
  180                                 const QString &dimFieldName,
 
  181                                 const QString &dimEndFieldName = QString(),
 
  182                                 const QString &dimUnits = QString(),
 
  183                                 const QString &dimUnitSymbol = QString(),
 
  185                                 const QVariant &dimReferenceValue = QVariant() )
 
  187        , fieldName( dimFieldName )
 
  188        , endFieldName( dimEndFieldName )
 
  190        , unitSymbol( dimUnitSymbol )
 
  191        , defaultDisplayType( dimDefaultDisplayType )
 
  192        , referenceValue( dimReferenceValue )
 
 
 
  218    static QMap<int, QString> wmsDimensionDefaultDisplayLabels();
 
  233    bool removeWmsDimension( 
const QString &wmsDimName );
 
  240    void setWmsDimensions( 
const QList<QgsServerWmsDimensionProperties::WmsDimensionInfo> &dimensions );
 
  246    const QList<QgsServerWmsDimensionProperties::WmsDimensionInfo> wmsDimensions() 
const;
 
  256    void writeXml( QDomNode &layer_node, QDomDocument &document ) 
const SIP_SKIP;
 
  261    void readXml( 
const QDomNode &layer_node ) 
SIP_SKIP;
 
 
  315    void writeXml( QDomNode &layer_node, QDomDocument &document ) 
const; 
 
  321    void readXml( 
const QDomNode &layer_node ); 
 
  354    void setTitle( 
const QString &title ) { mTitle = title; }
 
  372    QString 
title()
 const { 
return mTitle; }
 
  382    QString 
wfsTitle()
 const { 
return mWfsTitle.isEmpty() ? mTitle : mWfsTitle; }
 
  391    void setAbstract( 
const QString &abstract ) { mAbstract = abstract; }
 
  429    void setDataUrl( 
const QString &dataUrl ) { mDataUrl = dataUrl; }
 
  513    void setLegendUrl( 
const QString &legendUrl ) { mLegendUrl = legendUrl; }
 
  546    QString mAttribution;
 
  547    QString mAttributionUrl;
 
  550    QString mDataUrlFormat;
 
  553    QString mKeywordList;
 
  557    QString mLegendUrlFormat;
 
 
Manages QGIS Server properties for a map layer.
void setLegendUrl(const QString &legendUrl)
Sets the URL for the layer's legend.
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.
void setLegendUrlFormat(const QString &legendUrlFormat)
Sets the format for a URL based layer legend.
QString legendUrlFormat() const
Returns the format for a URL based layer legend.
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 wfsTitle() const
Returns the optional WFS title if set or the title of the layer used by QGIS WFS in GetCapabilities r...
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.
void setWfsTitle(const QString &title)
Sets the title of the layer used by QGIS Server in WFS GetCapabilities request.
QString legendUrl() const
Returns the URL for the layer's legend.
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)
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.