QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Manages QGIS Server properties for Wms dimensions. More...
#include <qgsmaplayerserverproperties.h>
Classes | |
struct | WmsDimensionInfo |
Setting to define QGIS Server WMS Dimension. More... | |
Public Types | |
enum | PredefinedWmsDimensionName { TIME , DATE , ELEVATION } |
Predefined/Restricted WMS Dimension name. More... | |
Public Member Functions | |
virtual | ~QgsServerWmsDimensionProperties ()=default |
bool | addWmsDimension (const QgsServerWmsDimensionProperties::WmsDimensionInfo &wmsDimInfo) |
Adds a QGIS Server WMS Dimension. More... | |
virtual const QgsMapLayer * | layer () const =0 |
Gets the parent layer. More... | |
bool | removeWmsDimension (const QString &wmsDimName) |
Removes a QGIS Server WMS Dimension. More... | |
void | setWmsDimensions (const QList< QgsServerWmsDimensionProperties::WmsDimensionInfo > &dimensions) |
Set WMS Dimensions. More... | |
const QList< QgsServerWmsDimensionProperties::WmsDimensionInfo > | wmsDimensions () const |
Returns the QGIS Server WMS Dimension list. More... | |
Static Public Member Functions | |
static QMap< int, QString > | wmsDimensionDefaultDisplayLabels () |
Returns WMS Dimension default display labels. More... | |
Protected Member Functions | |
void | copyTo (QgsServerWmsDimensionProperties *properties) const |
Copy properties to another instance. More... | |
void | readXml (const QDomNode &layer_node) |
Reads server properties from project file. More... | |
void | reset () |
Reset properties to default. More... | |
void | writeXml (QDomNode &layer_node, QDomDocument &document) const |
Saves server properties to xml under the layer node. More... | |
Manages QGIS Server properties for Wms dimensions.
Definition at line 135 of file qgsmaplayerserverproperties.h.
Predefined/Restricted WMS Dimension name.
Enumerator | |
---|---|
TIME | |
DATE | |
ELEVATION |
Definition at line 144 of file qgsmaplayerserverproperties.h.
|
virtualdefault |
bool QgsServerWmsDimensionProperties::addWmsDimension | ( | const QgsServerWmsDimensionProperties::WmsDimensionInfo & | wmsDimInfo | ) |
Adds a QGIS Server WMS Dimension.
wmsDimInfo | QGIS Server WMS Dimension object with, name, field, etc |
true
if QGIS Server WMS Dimension has been successfully added Definition at line 100 of file qgsmaplayerserverproperties.cpp.
|
protected |
Copy properties to another instance.
properties | The properties to copy to |
Definition at line 75 of file qgsmaplayerserverproperties.cpp.
|
pure virtual |
Gets the parent layer.
Implemented in QgsMapLayerServerProperties.
|
protected |
Reads server properties from project file.
Definition at line 131 of file qgsmaplayerserverproperties.cpp.
bool QgsServerWmsDimensionProperties::removeWmsDimension | ( | const QString & | wmsDimName | ) |
Removes a QGIS Server WMS Dimension.
true
if QGIS Server WMS Dimension was found and successfully removed Definition at line 113 of file qgsmaplayerserverproperties.cpp.
|
protected |
Reset properties to default.
Definition at line 80 of file qgsmaplayerserverproperties.cpp.
void QgsServerWmsDimensionProperties::setWmsDimensions | ( | const QList< QgsServerWmsDimensionProperties::WmsDimensionInfo > & | dimensions | ) |
Set WMS Dimensions.
dimensions | the new dimensions that replace the current ones. |
Definition at line 85 of file qgsmaplayerserverproperties.cpp.
|
static |
Returns WMS Dimension default display labels.
Definition at line 90 of file qgsmaplayerserverproperties.cpp.
const QList< QgsServerWmsDimensionProperties::WmsDimensionInfo > QgsServerWmsDimensionProperties::wmsDimensions | ( | ) | const |
Returns the QGIS Server WMS Dimension list.
Definition at line 126 of file qgsmaplayerserverproperties.cpp.
|
protected |
Saves server properties to xml under the layer node.
Definition at line 186 of file qgsmaplayerserverproperties.cpp.