QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
qgswmsparameters.h
Go to the documentation of this file.
1/***************************************************************************
2 qgswmsparameters.h
3 ------------------
4 begin : March 17, 2017
5 copyright : (C) 2017 by Paul Blottiere
6 email : paul dot blottiere at oslandia dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSWMSPARAMETERS_H
19#define QGSWMSPARAMETERS_H
20
21#include <QMap>
22#include <QMetaEnum>
23#include <QColor>
24
25#include "qgsrectangle.h"
26#include "qgslegendsettings.h"
27#include "qgsprojectversion.h"
28#include "qgsogcutils.h"
29#include "qgsserverparameters.h"
30#include "qgsdxfexport.h"
31
32namespace QgsWms
33{
35 {
37 enum Type
38 {
41 OGC_FE
42 };
43
44 QString mFilter;
47 };
48
50 {
51 QString mNickname; // name, id or short name
52 int mOpacity = -1;
53 QList<QgsWmsParametersFilter> mFilter; // list of filter
54 QStringList mSelection; // list of string fid
55 QString mStyle;
56 QString mExternalUri;
57 };
58
60 {
61 QString mName;
62 QString mUri;
63 };
64
66 {
67 QString mName;
69 QString mSld;
70 QString mLabel;
71 QColor mColor;
72 int mSize = 0;
73 int mWeight = 0;
74 QString mFont;
75 float mBufferSize = 0;
77 double mLabelRotation = 0;
78 double mLabelDistance = 2; //label distance from feature in mm
79 QString mHali; //horizontal alignment
80 QString mVali; //vertical alignment
81 };
82
84 {
85 int mId = 0; // composer map id
86 bool mHasExtent = false; // does the request contains extent for this composer map
87 QgsRectangle mExtent; // the request extent for this composer map
88 float mScale = -1;
89 float mRotation = 0;
90 float mGridX = 0;
91 float mGridY = 0;
92 QList<QgsWmsParametersLayer> mLayers; // list of layers for this composer map
93 QList<QgsWmsParametersHighlightLayer> mHighlightLayers; // list of highlight layers for this composer map
94 };
95
103 {
104 Q_GADGET
105
106 public:
108 enum Name
109 {
191 };
192 Q_ENUM( Name )
193
194
201 const QVariant::Type type = QVariant::String,
202 const QVariant defaultValue = QVariant( "" ) );
203
207 virtual ~QgsWmsParameter() override = default;
208
212 bool isValid() const override;
213
221 QStringList toStyleList( const char delimiter = ',' ) const;
222
229 QList<QgsGeometry> toGeomList( const char delimiter = ',' ) const;
230
237 QList<int> toIntList( const char delimiter = ',' ) const;
238
245 QList<double> toDoubleList( const char delimiter = ',' ) const;
246
253 QList<QColor> toColorList( const char delimiter = ',' ) const;
254
261
267 int toInt() const;
268
274 double toDouble() const;
275
281 QColor toColor() const;
282
289 QUrl toUrl() const;
290
297 QString loadUrl() const;
298
303 void raiseError() const;
304
309 QString name() const;
310
314 static QString name( const QgsWmsParameter::Name );
315
320 static QgsWmsParameter::Name name( const QString &name );
321
323
325 int mMapId = -1;
326 };
327
335 {
336 Q_GADGET
337
338 public:
339
342 {
352 JSON
353 };
354 Q_ENUM( Format )
355
356
358 {
366 };
367 Q_ENUM( DxfFormatOption )
368
369
373 QgsWmsParameters( const QgsServerParameters &parameters );
374
379
380 virtual ~QgsWmsParameters() override = default;
381
387
392 void set( QgsWmsParameter::Name name, const QVariant &value );
393
397 void dump() const;
398
403 QString crs() const;
404
409 QString width() const;
410
418 int widthAsInt() const;
419
424 QString height() const;
425
433 int heightAsInt() const;
434
440 QString srcWidth() const;
441
450 int srcWidthAsInt() const;
451
457 QString srcHeight() const;
458
467 int srcHeightAsInt() const;
468
474
479 bool versionIsValid( const QString version ) const;
480
485 QString bbox() const;
486
494
499 QString sldBody() const;
500
505 QStringList selections() const;
506
511 QStringList filters() const;
512
517 QString filterGeom() const;
518
523 QStringList opacities() const;
524
532 QList<int> opacitiesAsInt() const;
533
538 QStringList allLayersNickname() const;
539
544 QStringList queryLayersNickname() const;
545
550 QStringList allStyles() const;
551
556 QList<QgsWmsParametersLayer> layersParameters() const;
557
563 QString polygonTolerance() const;
564
570 QString lineTolerance() const;
571
577 QString pointTolerance() const;
578
584 int polygonToleranceAsInt() const;
585
591 int lineToleranceAsInt() const;
592
598 int pointToleranceAsInt() const;
599
604 QString formatAsString() const;
605
610 static QString formatAsString( Format format );
611
617 Format format() const;
618
623 QString infoFormatAsString() const;
624
629 bool infoFormatIsImage() const;
630
636 QString imageQuality() const;
637
643 int imageQualityAsInt() const;
644
650 QString tiled() const;
651
657 bool tiledAsBool() const;
658
662 bool addLayerGroups() const;
663
669 Format infoFormat() const;
670
676 int infoFormatVersion() const;
677
682 QString i() const;
683
691 int iAsInt() const;
692
697 QString j() const;
698
706 int jAsInt() const;
707
712 QString x() const;
713
721 int xAsInt() const;
722
727 QString y() const;
728
736 int yAsInt() const;
737
742 QString rule() const;
743
748 QString ruleLabel() const;
749
756 bool ruleLabelAsBool() const;
757
762 QString showFeatureCount() const;
763
770 bool showFeatureCountAsBool() const;
771
776 QString featureCount() const;
777
784 int featureCountAsInt() const;
785
790 QString scale() const;
791
798 double scaleAsDouble() const;
799
804 QString boxSpace() const;
805
812 double boxSpaceAsDouble() const;
813
818 QString layerSpace() const;
819
826 double layerSpaceAsDouble() const;
827
832 QString layerTitleSpace() const;
833
840 double layerTitleSpaceAsDouble() const;
841
846 QString symbolSpace() const;
847
854 double symbolSpaceAsDouble() const;
855
860 QString iconLabelSpace() const;
861
868 double iconLabelSpaceAsDouble() const;
869
874 QString symbolWidth() const;
875
882 double symbolWidthAsDouble() const;
883
888 QString symbolHeight() const;
889
896 double symbolHeightAsDouble() const;
897
903 QFont layerFont() const;
904
909 QString layerFontFamily() const;
910
915 QString layerFontBold() const;
916
923 bool layerFontBoldAsBool() const;
924
929 QString layerFontItalic() const;
930
937 bool layerFontItalicAsBool() const;
938
943 QString layerFontSize() const;
944
951 double layerFontSizeAsDouble() const;
952
957 QString layerFontColor() const;
958
965 QColor layerFontColorAsColor() const;
966
972 QFont itemFont() const;
973
978 QString itemFontFamily() const;
979
984 QString itemFontBold() const;
985
992 bool itemFontBoldAsBool() const;
993
998 QString itemFontItalic() const;
999
1006 bool itemFontItalicAsBool() const;
1007
1012 QString itemFontSize() const;
1013
1020 double itemFontSizeAsDouble() const;
1021
1026 QString itemFontColor() const;
1027
1034 QColor itemFontColorAsColor() const;
1035
1040 QString layerTitle() const;
1041
1048 bool layerTitleAsBool() const;
1049
1055
1060 QList<QgsWmsParametersHighlightLayer> highlightLayersParameters() const;
1061
1066 QList<QgsWmsParametersExternalLayer> externalLayersParameters() const;
1067
1072 QStringList highlightGeom() const;
1073
1080 QList<QgsGeometry> highlightGeomAsGeom() const;
1081
1086 QStringList highlightSymbol() const;
1087
1092 QStringList highlightLabelString() const;
1093
1098 QStringList highlightLabelColor() const;
1099
1106 QList<QColor> highlightLabelColorAsColor() const;
1107
1112 QStringList highlightLabelSize() const;
1113
1120 QList<int> highlightLabelSizeAsInt() const;
1121
1126 QStringList highlightLabelWeight() const;
1127
1134 QList<int> highlightLabelWeightAsInt() const;
1135
1140 QStringList highlightLabelFont() const;
1141
1146 QStringList highlightLabelBufferSize() const;
1147
1154 QList<double> highlightLabelBufferSizeAsFloat() const;
1155
1160 QStringList highlightLabelBufferColor() const;
1161
1168 QList<QColor> highlightLabelBufferColorAsColor() const;
1169
1174 QList<double> highlightLabelRotation() const;
1175
1180 QList<double> highlightLabelDistance() const;
1181
1186 QStringList highlightLabelHorizontalAlignment() const;
1187
1192 QStringList highlightLabelVerticalAlignment() const;
1193
1198 QString wmsPrecision() const;
1199
1207 int wmsPrecisionAsInt() const;
1208
1213 QString transparent() const;
1214
1222 bool transparentAsBool() const;
1223
1228 QString backgroundColor() const;
1229
1237 QColor backgroundColorAsColor() const;
1238
1243 QString dpi() const;
1244
1252 double dpiAsDouble() const;
1253
1258 QString composerTemplate() const;
1259
1270
1276 QString externalWMSUri( const QString &id ) const;
1277
1282 bool withGeometry() const;
1283
1288 bool withMapTip() const;
1289
1294 QString wmtver() const;
1295
1303 QString layoutParameter( const QString &id, bool &ok ) const;
1304
1310 QStringList atlasPk() const;
1311
1316 QMap<DxfFormatOption, QString> dxfFormatOptions() const;
1317
1322 QStringList dxfLayerAttributes() const;
1323
1328 bool dxfUseLayerTitleAsName() const;
1329
1334 double dxfScale() const;
1335
1341
1346 QString dxfCodec() const;
1347
1352 QMap<QString, QString> dimensionValues() const;
1353
1360 bool noMText() const;
1361
1368 bool isForce2D() const;
1369
1370 QString version() const override;
1371
1372 QString request() const override;
1373
1374 private:
1375 static bool isExternalLayer( const QString &name );
1376
1377 bool loadParameter( const QString &name, const QString &value ) override;
1378
1379 void save( const QgsWmsParameter &parameter, bool multi = false );
1380
1381 QgsWmsParameter idParameter( QgsWmsParameter::Name name, int id ) const;
1382
1383 void raiseError( const QString &msg ) const;
1384 void log( const QString &msg ) const;
1385
1386 QgsWmsParametersExternalLayer externalLayerParameter( const QString &name ) const;
1387
1388 QMultiMap<QString, QgsWmsParametersFilter> layerFilters( const QStringList &layers ) const;
1389
1390
1391 QMultiMap<QgsWmsParameter::Name, QgsWmsParameter> mWmsParameters;
1392 QMap<QString, QMap<QString, QString> > mExternalWMSParameters;
1393 QList<QgsProjectVersion> mVersions;
1394 };
1395}
1396
1397#endif
A geometry is the spatial representation of a feature.
Definition: qgsgeometry.h:164
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
FilterVersion
OGC filter version.
Definition: qgsogcutils.h:179
A class to describe the version of a project.
A rectangle specified with double values.
Definition: qgsrectangle.h:42
Definition of a parameter with basic conversion methods.
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from ...
QString value(const QString &key) const
Returns the value of a parameter.
WMS parameter received from the client.
int toInt() const
Converts the parameter into an integer.
QList< double > toDoubleList(const char delimiter=',') const
Converts the parameter into a list of doubles.
QList< QColor > toColorList(const char delimiter=',') const
Converts the parameter into a list of colors.
double toDouble() const
Converts the parameter into a double.
void raiseError() const
Raises an error in case of an invalid conversion.
virtual ~QgsWmsParameter() override=default
Default destructor for QgsWmsParameter.
Name
Available parameters for WMS requests.
QUrl toUrl() const
Converts the parameter into an url.
QList< QgsGeometry > toGeomList(const char delimiter=',') const
Converts the parameter into a list of geometries.
bool isValid() const override
Returns true if the parameter is valid, false otherwise.
QString name() const
Returns the name of the parameter.
QgsRectangle toRectangle() const
Converts the parameter into a rectangle.
QgsWmsParameter(const QgsWmsParameter::Name name=QgsWmsParameter::UNKNOWN, const QVariant::Type type=QVariant::String, const QVariant defaultValue=QVariant(""))
Constructor for QgsWmsParameter.
QColor toColor() const
Converts the parameter into a color.
QgsWmsParameter::Name mName
QList< int > toIntList(const char delimiter=',') const
Converts the parameter into a list of integers.
QStringList toStyleList(const char delimiter=',') const
Converts the parameter into a list of strings and keeps empty parts Default style value is an empty s...
int mMapId
Map id for prefixed parameters (e.g. "0" for "map0:LAYERS" in GetPrint requests)
QString loadUrl() const
Loads the data associated to the parameter converted into an url.
Provides an interface to retrieve and manipulate WMS parameters received from the client.
QString rule() const
Returns RULE parameter or an empty string if none is defined.
QString layerTitle() const
Returns LAYERTITLE parameter or an empty string if not defined.
double layerSpaceAsDouble() const
Returns LAYERSPACE as a double or its default value if not defined.
QString boxSpace() const
Returns BOXSPACE parameter or an empty string if not defined.
QString wmsPrecision() const
Returns WMS_PRECISION parameter or an empty string if not defined.
double dxfScale() const
Returns the DXF SCALE parameter.
QString featureCount() const
Returns FEATURE_COUNT parameter or an empty string if none is defined.
QFont layerFont() const
Returns the layer font (built thanks to the LAYERFONTFAMILY, LAYERFONTSIZE, LAYERFONTBOLD,...
QList< int > opacitiesAsInt() const
Returns the list of opacities found in OPACITIES parameter as integers.
bool transparentAsBool() const
Returns TRANSPARENT parameter as a bool or its default value if not defined.
QString transparent() const
Returns TRANSPARENT parameter or an empty string if not defined.
QList< int > highlightLabelWeightAsInt() const
Returns HIGHLIGHT_LABELWEIGHT as a list of int.
QString iconLabelSpace() const
Returns ICONLABELSPACE parameter or an empty string if not defined.
QString layerTitleSpace() const
Returns LAYERTITLESPACE parameter or an empty string if not defined.
QString x() const
Returns X parameter or an empty string if not defined.
QString layerSpace() const
Returns LAYERSPACE parameter or an empty string if not defined.
int wmsPrecisionAsInt() const
Returns WMS_PRECISION parameter as an int or its default value if not defined.
QMap< DxfFormatOption, QString > dxfFormatOptions() const
Returns a map of DXF options defined within FORMAT_OPTIONS parameter.
QStringList highlightLabelBufferSize() const
Returns HIGHLIGHT_LABELBUFFERSIZE.
QStringList allLayersNickname() const
Returns nickname of layers found in LAYER and LAYERS parameters.
virtual ~QgsWmsParameters() override=default
QString formatAsString() const
Returns FORMAT parameter as a string.
double layerFontSizeAsDouble() const
Returns LAYERFONTSIZE as a double.
QString externalWMSUri(const QString &id) const
Returns the external WMS uri.
QgsProjectVersion versionAsNumber() const
Returns VERSION parameter if defined or its default value.
QString scale() const
Returns SCALE parameter or an empty string if none is defined.
QString ruleLabel() const
Returns RULELABEL parameter or an empty string if none is defined.
double scaleAsDouble() const
Returns SCALE as a double.
bool layerFontItalicAsBool() const
Returns LAYERFONTITALIC as a boolean or its default value if not defined.
QgsWmsParametersComposerMap composerMapParameters(int mapId) const
Returns the requested parameters for a composer map parameter.
QgsRectangle bboxAsRectangle() const
Returns BBOX as a rectangle if defined and valid.
bool withGeometry() const
Returns if the client wants the feature info response with geometry information.
QStringList highlightLabelString() const
Returns HIGHLIGHT_LABELSTRING as a list of string.
QString tiled() const
Returns TILED parameter or an empty string if not defined.
QString layerFontSize() const
Returns LAYERFONTSIZE parameter or an empty string if not defined.
DxfFormatOption
Options for DXF format.
QList< QColor > highlightLabelColorAsColor() const
Returns HIGHLIGHT_LABELCOLOR as a list of color.
bool itemFontBoldAsBool() const
Returns ITEMFONTBOLD as a boolean or its default value if not defined.
QStringList highlightLabelHorizontalAlignment() const
Returns HIGHLIGHT_LABEL_HORIZONTAL_ALIGNMENT as a list of string.
void set(QgsWmsParameter::Name name, const QVariant &value)
Sets a parameter value thanks to its name.
QString pointTolerance() const
Returns FI_POINT_TOLERANCE parameter or an empty string if not defined.
QString filterGeom() const
Returns the filter geometry found in FILTER_GEOM parameter.
QString composerTemplate() const
Returns TEMPLATE parameter or an empty string if not defined.
Format infoFormat() const
Returns infoFormat.
QString dxfCodec() const
Returns the DXF CODEC parameter.
QString y() const
Returns Y parameter or an empty string if not defined.
QString srcHeight() const
Returns SRCHEIGHT parameter or an empty string if not defined.
double dpiAsDouble() const
Returns DPI parameter as an int or its default value if not defined.
QStringList highlightLabelVerticalAlignment() const
Returns HIGHLIGHT_LABEL_VERTICAL_ALIGNMENT as a list of string.
void dump() const
Dumps parameters.
int pointToleranceAsInt() const
Returns FI_POINT_TOLERANCE parameter as an integer.
bool withMapTip() const
withMapTip
QString polygonTolerance() const
Returns FI_POLYGON_TOLERANCE parameter or an empty string if not defined.
QStringList highlightGeom() const
Returns HIGHLIGHT_GEOM as a list of string in WKT.
QString i() const
Returns I parameter or an empty string if not defined.
QList< QColor > highlightLabelBufferColorAsColor() const
Returns HIGHLIGHT_LABELBUFFERCOLOR as a list of colors.
QString request() const override
Returns REQUEST parameter as a string or an empty string if not defined.
double layerTitleSpaceAsDouble() const
Returns LAYERTITLESPACE as a double.
QList< QgsWmsParametersLayer > layersParameters() const
Returns parameters for each layer found in LAYER/LAYERS.
int lineToleranceAsInt() const
Returns FI_LINE_TOLERANCE parameter as an integer.
QList< double > highlightLabelBufferSizeAsFloat() const
Returns HIGHLIGHT_LABELBUFFERSIZE as a list of float.
QString lineTolerance() const
Returns FI_LINE_TOLERANCE parameter or an empty string if not defined.
bool showFeatureCountAsBool() const
Returns SHOWFEATURECOUNT as a bool.
QStringList highlightLabelColor() const
Returns HIGHLIGHT_LABELCOLOR as a list of string.
bool versionIsValid(const QString version) const
Returns true if version is valid, false otherwise.
QString j() const
Returns J parameter or an empty string if not defined.
int xAsInt() const
Returns X parameter as an int or its default value if not defined.
QColor layerFontColorAsColor() const
Returns LAYERFONTCOLOR as a color or its defined value if not defined.
QString bbox() const
Returns BBOX if defined or an empty string.
QgsWmsParameters()
Constructor for WMS parameters with default values only.
int heightAsInt() const
Returns HEIGHT parameter as an int or its default value if not defined.
QStringList highlightLabelWeight() const
Returns HIGHLIGHT_LABELWEIGHT as a list of string.
QString backgroundColor() const
Returns BGCOLOR parameter or an empty string if not defined.
QStringList allStyles() const
Returns styles found in STYLE and STYLES parameters.
double symbolWidthAsDouble() const
Returns SYMBOLWIDTH as a double or its default value if not defined.
QColor backgroundColorAsColor() const
Returns BGCOLOR parameter as a QColor or its default value if not defined.
Format format() const
Returns format.
QgsWmsParameter operator[](QgsWmsParameter::Name name) const
Returns the parameter corresponding to name.
QString itemFontSize() const
Returns ITEMFONTSIZE parameter or an empty string if not defined.
QStringList atlasPk() const
Returns the ATLAS_PK parameter.
QList< QgsGeometry > highlightGeomAsGeom() const
Returns HIGHLIGHT_GEOM as a list of geometries.
QString layerFontFamily() const
Returns LAYERFONTFAMILY parameter or an empty string if not defined.
QList< QgsWmsParametersHighlightLayer > highlightLayersParameters() const
Returns parameters for each highlight layer.
int iAsInt() const
Returns I parameter as an int or its default value if not defined.
QStringList highlightLabelBufferColor() const
Returns HIGHLIGHT_LABELBUFFERCOLOR as a list of string.
int polygonToleranceAsInt() const
Returns FI_POLYGON_TOLERANCE parameter as an integer.
QgsDxfExport::SymbologyExport dxfMode() const
Returns the DXF MODE parameter.
bool ruleLabelAsBool() const
Returns RULELABEL as a bool.
QList< double > highlightLabelDistance() const
Returns HIGHLIGHT_LABEL_DISTANCE as a list of double.
QList< int > highlightLabelSizeAsInt() const
Returns HIGHLIGHT_LABELSIZE as a list of int An exception is raised if an invalid size is found.
int widthAsInt() const
Returns WIDTH parameter as an int or its default value if not defined.
QString sldBody() const
Returns SLD_body if defined or an empty string.
bool itemFontItalicAsBool() const
Returns ITEMFONTITALIC as a boolean or its default value if not defined.
QColor itemFontColorAsColor() const
Returns ITEMFONTCOLOR as a color.
double itemFontSizeAsDouble() const
Returns ITEMFONTSIZE as a double.
QString layerFontColor() const
Returns LAYERFONTCOLOR parameter or an empty string if not defined.
QString layoutParameter(const QString &id, bool &ok) const
Returns a layout parameter thanks to its id.
bool dxfUseLayerTitleAsName() const
Returns the DXF USE_TITLE_AS_LAYERNAME parameter.
QString symbolHeight() const
Returns SYMBOLHEIGHT parameter or an empty string if not defined.
int imageQualityAsInt() const
Returns IMAGE_QUALITY parameter as an integer.
QMap< QString, QString > dimensionValues() const
Returns the dimensions parameter.
QList< QgsWmsParametersExternalLayer > externalLayersParameters() const
Returns parameters for each external layer.
int infoFormatVersion() const
Returns the infoFormat version for GML.
QString layerFontBold() const
Returns LAYERFONTBOLD parameter or an empty string if not defined.
QgsLegendSettings legendSettings() const
Returns legend settings.
int srcHeightAsInt() const
Returns SRCHEIGHT parameter as an int or its default value if not defined.
QString symbolSpace() const
Returns SYMBOLSPACE parameter or an empty string if not defined.
QString itemFontBold() const
Returns ITEMFONTBOLD parameter or an empty string if not defined.
double symbolSpaceAsDouble() const
Returns SYMBOLSPACE as a double or its default value if not defined.
QString infoFormatAsString() const
Returns INFO_FORMAT parameter as a string.
QStringList highlightLabelFont() const
Returns HIGHLIGHT_LABELFONT.
QString wmtver() const
Returns WMTVER parameter or an empty string if not defined.
QStringList dxfLayerAttributes() const
Returns the DXF LAYERATTRIBUTES parameter.
QString srcWidth() const
Returns SRCWIDTH parameter or an empty string if not defined.
QStringList highlightLabelSize() const
Returns HIGHLIGHT_LABELSIZE as a list of string.
QString imageQuality() const
Returns IMAGE_QUALITY parameter or an empty string if not defined.
QList< double > highlightLabelRotation() const
Returns HIGHLIGHT_LABEL_ROTATION as a list of double.
QString height() const
Returns HEIGHT parameter or an empty string if not defined.
QString crs() const
Returns CRS or an empty string if none is defined.
QStringList selections() const
Returns the list of feature selection found in SELECTION parameter.
int featureCountAsInt() const
Returns FEATURE_COUNT as an integer.
int yAsInt() const
Returns Y parameter as an int or its default value if not defined.
bool layerTitleAsBool() const
Returns LAYERTITLE as a bool or its default value if not defined.
QString itemFontColor() const
Returns ITEMFONTCOLOR parameter or an empty string if not defined.
double boxSpaceAsDouble() const
Returns BOXSPACE as a double or its default value if not defined.
bool addLayerGroups() const
Returns true if layer groups shall be added to GetLegendGraphic results.
QString symbolWidth() const
Returns SYMBOLWIDTH parameter or an empty string if not defined.
bool tiledAsBool() const
Returns TILED parameter as a boolean.
Format
Output format for the response.
QString width() const
Returns WIDTH parameter or an empty string if not defined.
QFont itemFont() const
Returns the item font (built thanks to the ITEMFONTFAMILY, ITEMFONTSIZE, ITEMFONTBOLD,...
QStringList opacities() const
Returns the list of opacities found in OPACITIES parameter.
QString version() const override
Returns VERSION parameter as a string or an empty string if not defined.
QString layerFontItalic() const
Returns LAYERFONTITALIC parameter or an empty string if not defined.
QString itemFontItalic() const
Returns ITEMFONTITALIC parameter or an empty string if not defined.
QStringList filters() const
Returns the list of filters found in FILTER parameter.
QString dpi() const
Returns DPI parameter or an empty string if not defined.
QString itemFontFamily() const
Returns ITEMFONTFAMILY parameter or an empty string if not defined.
int jAsInt() const
Returns J parameter as an int or its default value if not defined.
QString showFeatureCount() const
Returns SHOWFEATURECOUNT parameter or an empty string if none is defined.
bool layerFontBoldAsBool() const
Returns LAYERFONTBOLD as a boolean or its default value if not defined.
double iconLabelSpaceAsDouble() const
Returns ICONLABELSPACE as a double or its default value if not defined.
QStringList highlightSymbol() const
Returns HIGHLIGHT_SYMBOL as a list of string.
QStringList queryLayersNickname() const
Returns nickname of layers found in QUERY_LAYERS parameter.
double symbolHeightAsDouble() const
Returns SYMBOLHEIGHT as a double or its default value if not defined.
bool infoFormatIsImage() const
Checks if INFO_FORMAT parameter is one of the image formats (PNG, JPG).
int srcWidthAsInt() const
Returns SRCWIDTH parameter as an int or its default value if not defined.
Median cut implementation.
QList< QgsWmsParametersLayer > mLayers
QList< QgsWmsParametersHighlightLayer > mHighlightLayers
QgsWmsParametersFilter::Type mType
QgsOgcUtils::FilterVersion mVersion
QList< QgsWmsParametersFilter > mFilter