QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Manages QGIS Server properties for a vector layer. More...
#include <qgsvectorlayerserverproperties.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 | |
QgsVectorLayerServerProperties (QgsVectorLayer *layer=nullptr) | |
Constructor - Creates a Vector Layer QGIS Server Properties. More... | |
bool | addWmsDimension (const QgsVectorLayerServerProperties::WmsDimensionInfo &wmsDimInfo) |
Adds a QGIS Server WMS Dimension. More... | |
void | readXml (const QDomNode &layer_node) |
Reads server properties from project file. More... | |
bool | removeWmsDimension (const QString &wmsDimName) |
Removes a QGIS Server WMS Dimension. More... | |
const QList< QgsVectorLayerServerProperties::WmsDimensionInfo > | wmsDimensions () const |
Returns the QGIS Server WMS Dimension list. More... | |
void | writeXml (QDomNode &layer_node, QDomDocument &document) const |
Saves server properties to xml under the layer node. More... | |
Static Public Member Functions | |
static QMap< int, QString > | wmsDimensionDefaultDisplayLabels () |
Returns WMS Dimension default display labels. More... | |
Manages QGIS Server properties for a vector layer.
Definition at line 38 of file qgsvectorlayerserverproperties.h.
Predefined/Restricted WMS Dimension name.
Enumerator | |
---|---|
TIME | |
DATE | |
ELEVATION |
Definition at line 48 of file qgsvectorlayerserverproperties.h.
QgsVectorLayerServerProperties::QgsVectorLayerServerProperties | ( | QgsVectorLayer * | layer = nullptr | ) |
Constructor - Creates a Vector Layer QGIS Server Properties.
layer | The vector layer |
Definition at line 23 of file qgsvectorlayerserverproperties.cpp.
bool QgsVectorLayerServerProperties::addWmsDimension | ( | const QgsVectorLayerServerProperties::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 38 of file qgsvectorlayerserverproperties.cpp.
void QgsVectorLayerServerProperties::readXml | ( | const QDomNode & | layer_node | ) |
Reads server properties from project file.
Definition at line 69 of file qgsvectorlayerserverproperties.cpp.
bool QgsVectorLayerServerProperties::removeWmsDimension | ( | const QString & | wmsDimName | ) |
Removes a QGIS Server WMS Dimension.
true
if QGIS Server WMS Dimension was found and successfully removed Definition at line 51 of file qgsvectorlayerserverproperties.cpp.
|
static |
Returns WMS Dimension default display labels.
Definition at line 28 of file qgsvectorlayerserverproperties.cpp.
const QList< QgsVectorLayerServerProperties::WmsDimensionInfo > QgsVectorLayerServerProperties::wmsDimensions | ( | ) | const |
Returns the QGIS Server WMS Dimension list.
Definition at line 64 of file qgsvectorlayerserverproperties.cpp.
void QgsVectorLayerServerProperties::writeXml | ( | QDomNode & | layer_node, |
QDomDocument & | document | ||
) | const |
Saves server properties to xml under the layer node.
Definition at line 114 of file qgsvectorlayerserverproperties.cpp.