Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31351 from rldhont/server-wms-dimensions
Support WMS dimensions in QGIS Server
- Loading branch information
Showing
48 changed files
with
3,247 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 130 additions & 0 deletions
130
python/core/auto_generated/qgsvectorlayerserverproperties.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsvectorlayerserverproperties.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsVectorLayerServerProperties | ||
{ | ||
%Docstring | ||
Manages QGIS Server properties for a vector layer | ||
|
||
.. versionadded:: 3.10 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsvectorlayerserverproperties.h" | ||
%End | ||
public: | ||
static const QMetaObject staticMetaObject; | ||
|
||
public: | ||
|
||
enum PredefinedWmsDimensionName | ||
{ | ||
TIME, | ||
ELEVATION | ||
}; | ||
|
||
struct WmsDimensionInfo | ||
{ | ||
|
||
enum DefaultDisplay | ||
{ | ||
AllValues, | ||
MinValue, | ||
MaxValue, | ||
ReferenceValue, | ||
}; | ||
|
||
explicit 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() ); | ||
%Docstring | ||
Constructor for WmsDimensionInfo. | ||
%End | ||
QString name; | ||
QString fieldName; | ||
QString endFieldName; | ||
QString units; | ||
QString unitSymbol; | ||
int defaultDisplayType; | ||
QVariant referenceValue; | ||
}; | ||
|
||
QgsVectorLayerServerProperties( QgsVectorLayer *layer = 0 ); | ||
%Docstring | ||
Constructor - Creates a Vector Layer QGIS Server Properties | ||
|
||
:param layer: The vector layer | ||
%End | ||
|
||
static QMap<int, QString> wmsDimensionDefaultDisplayLabels(); | ||
%Docstring | ||
Returns WMS Dimension default display labels | ||
|
||
.. versionadded:: 3.10 | ||
%End | ||
|
||
bool addWmsDimension( const QgsVectorLayerServerProperties::WmsDimensionInfo &wmsDimInfo ); | ||
%Docstring | ||
Adds a QGIS Server WMS Dimension | ||
|
||
:param wmsDimInfo: QGIS Server WMS Dimension object with, name, field, etc | ||
|
||
:return: ``True`` if QGIS Server WMS Dimension has been successfully added | ||
|
||
.. versionadded:: 3.10 | ||
%End | ||
|
||
bool removeWmsDimension( const QString &wmsDimName ); | ||
%Docstring | ||
Removes a QGIS Server WMS Dimension | ||
|
||
:return: ``True`` if QGIS Server WMS Dimension was found and successfully removed | ||
|
||
.. versionadded:: 3.10 | ||
%End | ||
|
||
const QList<QgsVectorLayerServerProperties::WmsDimensionInfo> wmsDimensions() const; | ||
%Docstring | ||
Returns the QGIS Server WMS Dimension list. | ||
|
||
.. versionadded:: 3.10 | ||
%End | ||
|
||
|
||
void writeXml( QDomNode &layer_node, QDomDocument &document ) const; | ||
%Docstring | ||
Saves server properties to xml under the layer node | ||
|
||
.. versionadded:: 3.10 | ||
%End | ||
|
||
void readXml( const QDomNode &layer_node ); | ||
%Docstring | ||
Reads server properties from project file. | ||
|
||
.. versionadded:: 3.10 | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsvectorlayerserverproperties.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.