QGIS API Documentation  3.21.0-Master (909859188c)
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 
32 namespace QgsWms
33 {
35  {
37  enum Type
38  {
40  SQL,
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;
76  QColor mBufferColor;
77  };
78 
80  {
81  int mId = 0; // composer map id
82  bool mHasExtent = false; // does the request contains extent for this composer map
83  QgsRectangle mExtent; // the request extent for this composer map
84  float mScale = -1;
85  float mRotation = 0;
86  float mGridX = 0;
87  float mGridY = 0;
88  QList<QgsWmsParametersLayer> mLayers; // list of layers for this composer map
89  QList<QgsWmsParametersHighlightLayer> mHighlightLayers; // list of highlight layers for this composer map
90  };
91 
99  {
100  Q_GADGET
101 
102  public:
104  enum Name
105  {
148  I,
149  J,
150  X,
151  Y,
181  TILED
182  };
183  Q_ENUM( Name )
184 
185 
192  const QVariant::Type type = QVariant::String,
193  const QVariant defaultValue = QVariant( "" ) );
194 
198  virtual ~QgsWmsParameter() override = default;
199 
203  bool isValid() const override;
204 
212  QStringList toStyleList( const char delimiter = ',' ) const;
213 
220  QList<QgsGeometry> toGeomList( const char delimiter = ',' ) const;
221 
228  QList<int> toIntList( const char delimiter = ',' ) const;
229 
236  QList<double> toDoubleList( const char delimiter = ',' ) const;
237 
244  QList<QColor> toColorList( const char delimiter = ',' ) const;
245 
251  QgsRectangle toRectangle() const;
252 
258  int toInt() const;
259 
265  double toDouble() const;
266 
272  QColor toColor() const;
273 
280  QUrl toUrl() const;
281 
288  QString loadUrl() const;
289 
294  void raiseError() const;
295 
300  QString name() const;
301 
305  static QString name( const QgsWmsParameter::Name );
306 
311  static QgsWmsParameter::Name name( const QString &name );
312 
314  int mId = -1;
315  };
316 
324  {
325  Q_GADGET
326 
327  public:
328 
330  enum Format
331  {
341  JSON
342  };
343  Q_ENUM( Format )
344 
345 
347  {
354  FORCE_2D
355  };
356  Q_ENUM( DxfFormatOption )
357 
358 
362  QgsWmsParameters( const QgsServerParameters &parameters );
363 
368 
369  virtual ~QgsWmsParameters() override = default;
370 
376 
381  void set( QgsWmsParameter::Name name, const QVariant &value );
382 
386  void dump() const;
387 
392  QString crs() const;
393 
398  QString width() const;
399 
407  int widthAsInt() const;
408 
413  QString height() const;
414 
422  int heightAsInt() const;
423 
429  QString srcWidth() const;
430 
439  int srcWidthAsInt() const;
440 
446  QString srcHeight() const;
447 
456  int srcHeightAsInt() const;
457 
463 
468  bool versionIsValid( const QString version ) const;
469 
474  QString bbox() const;
475 
483 
488  QString sldBody() const;
489 
494  QStringList selections() const;
495 
500  QStringList filters() const;
501 
506  QString filterGeom() const;
507 
512  QStringList opacities() const;
513 
521  QList<int> opacitiesAsInt() const;
522 
527  QStringList allLayersNickname() const;
528 
533  QStringList queryLayersNickname() const;
534 
539  QStringList allStyles() const;
540 
545  QList<QgsWmsParametersLayer> layersParameters() const;
546 
552  QString polygonTolerance() const;
553 
559  QString lineTolerance() const;
560 
566  QString pointTolerance() const;
567 
573  int polygonToleranceAsInt() const;
574 
580  int lineToleranceAsInt() const;
581 
587  int pointToleranceAsInt() const;
588 
593  QString formatAsString() const;
594 
599  static QString formatAsString( Format format );
600 
606  Format format() const;
607 
612  QString infoFormatAsString() const;
613 
618  bool infoFormatIsImage() const;
619 
625  QString imageQuality() const;
626 
632  int imageQualityAsInt() const;
633 
639  QString tiled() const;
640 
646  bool tiledAsBool() const;
647 
653  Format infoFormat() const;
654 
660  int infoFormatVersion() const;
661 
666  QString i() const;
667 
675  int iAsInt() const;
676 
681  QString j() const;
682 
690  int jAsInt() const;
691 
696  QString x() const;
697 
705  int xAsInt() const;
706 
711  QString y() const;
712 
720  int yAsInt() const;
721 
726  QString rule() const;
727 
732  QString ruleLabel() const;
733 
740  bool ruleLabelAsBool() const;
741 
746  QString showFeatureCount() const;
747 
754  bool showFeatureCountAsBool() const;
755 
760  QString featureCount() const;
761 
768  int featureCountAsInt() const;
769 
774  QString scale() const;
775 
782  double scaleAsDouble() const;
783 
788  QString boxSpace() const;
789 
796  double boxSpaceAsDouble() const;
797 
802  QString layerSpace() const;
803 
810  double layerSpaceAsDouble() const;
811 
816  QString layerTitleSpace() const;
817 
824  double layerTitleSpaceAsDouble() const;
825 
830  QString symbolSpace() const;
831 
838  double symbolSpaceAsDouble() const;
839 
844  QString iconLabelSpace() const;
845 
852  double iconLabelSpaceAsDouble() const;
853 
858  QString symbolWidth() const;
859 
866  double symbolWidthAsDouble() const;
867 
872  QString symbolHeight() const;
873 
880  double symbolHeightAsDouble() const;
881 
887  QFont layerFont() const;
888 
893  QString layerFontFamily() const;
894 
899  QString layerFontBold() const;
900 
907  bool layerFontBoldAsBool() const;
908 
913  QString layerFontItalic() const;
914 
921  bool layerFontItalicAsBool() const;
922 
927  QString layerFontSize() const;
928 
935  double layerFontSizeAsDouble() const;
936 
941  QString layerFontColor() const;
942 
949  QColor layerFontColorAsColor() const;
950 
956  QFont itemFont() const;
957 
962  QString itemFontFamily() const;
963 
968  QString itemFontBold() const;
969 
976  bool itemFontBoldAsBool() const;
977 
982  QString itemFontItalic() const;
983 
990  bool itemFontItalicAsBool() const;
991 
996  QString itemFontSize() const;
997 
1004  double itemFontSizeAsDouble() const;
1005 
1010  QString itemFontColor() const;
1011 
1018  QColor itemFontColorAsColor() const;
1019 
1024  QString layerTitle() const;
1025 
1032  bool layerTitleAsBool() const;
1033 
1039 
1044  QList<QgsWmsParametersHighlightLayer> highlightLayersParameters() const;
1045 
1050  QList<QgsWmsParametersExternalLayer> externalLayersParameters() const;
1051 
1056  QStringList highlightGeom() const;
1057 
1064  QList<QgsGeometry> highlightGeomAsGeom() const;
1065 
1070  QStringList highlightSymbol() const;
1071 
1076  QStringList highlightLabelString() const;
1077 
1082  QStringList highlightLabelColor() const;
1083 
1090  QList<QColor> highlightLabelColorAsColor() const;
1091 
1096  QStringList highlightLabelSize() const;
1097 
1104  QList<int> highlightLabelSizeAsInt() const;
1105 
1110  QStringList highlightLabelWeight() const;
1111 
1118  QList<int> highlightLabelWeightAsInt() const;
1119 
1124  QStringList highlightLabelFont() const;
1125 
1130  QStringList highlightLabelBufferSize() const;
1131 
1138  QList<double> highlightLabelBufferSizeAsFloat() const;
1139 
1144  QStringList highlightLabelBufferColor() const;
1145 
1152  QList<QColor> highlightLabelBufferColorAsColor() const;
1153 
1158  QString wmsPrecision() const;
1159 
1167  int wmsPrecisionAsInt() const;
1168 
1173  QString transparent() const;
1174 
1182  bool transparentAsBool() const;
1183 
1188  QString backgroundColor() const;
1189 
1197  QColor backgroundColorAsColor() const;
1198 
1203  QString dpi() const;
1204 
1212  double dpiAsDouble() const;
1213 
1218  QString composerTemplate() const;
1219 
1230 
1236  QString externalWMSUri( const QString &id ) const;
1237 
1242  bool withGeometry() const;
1243 
1248  bool withMapTip() const;
1249 
1254  QString wmtver() const;
1255 
1263  QString layoutParameter( const QString &id, bool &ok ) const;
1264 
1270  QStringList atlasPk() const;
1271 
1276  QMap<DxfFormatOption, QString> dxfFormatOptions() const;
1277 
1282  QStringList dxfLayerAttributes() const;
1283 
1288  bool dxfUseLayerTitleAsName() const;
1289 
1294  double dxfScale() const;
1295 
1301 
1306  QString dxfCodec() const;
1307 
1312  QMap<QString, QString> dimensionValues() const;
1313 
1320  bool noMText() const;
1321 
1328  bool isForce2D() const;
1329 
1330  QString version() const override;
1331 
1332  QString request() const override;
1333 
1334  private:
1335  static bool isExternalLayer( const QString &name );
1336 
1337  bool loadParameter( const QString &name, const QString &value ) override;
1338 
1339  void save( const QgsWmsParameter &parameter, bool multi = false );
1340 
1341  QgsWmsParameter idParameter( QgsWmsParameter::Name name, int id ) const;
1342 
1343  void raiseError( const QString &msg ) const;
1344  void log( const QString &msg ) const;
1345 
1346  QgsWmsParametersExternalLayer externalLayerParameter( const QString &name ) const;
1347 
1348  QMultiMap<QString, QgsWmsParametersFilter> layerFilters( const QStringList &layers ) const;
1349 
1350 
1351  QMap<QgsWmsParameter::Name, QgsWmsParameter> mWmsParameters;
1352  QMap<QString, QMap<QString, QString> > mExternalWMSParameters;
1353  QList<QgsProjectVersion> mVersions;
1354  };
1355 }
1356 
1357 #endif
A geometry is the spatial representation of a feature.
Definition: qgsgeometry.h:124
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
FilterVersion
OGC filter version.
Definition: qgsogcutils.h:178
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...
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.
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.
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< 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.
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.
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