QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
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  private:
1331  static bool isExternalLayer( const QString &name );
1332 
1333  bool loadParameter( const QString &name, const QString &value ) override;
1334 
1335  void save( const QgsWmsParameter &parameter, bool multi = false );
1336 
1337  QgsWmsParameter idParameter( QgsWmsParameter::Name name, int id ) const;
1338 
1339  void raiseError( const QString &msg ) const;
1340  void log( const QString &msg ) const;
1341 
1342  QgsWmsParametersExternalLayer externalLayerParameter( const QString &name ) const;
1343 
1344  QMultiMap<QString, QgsWmsParametersFilter> layerFilters( const QStringList &layers ) const;
1345 
1346 
1347  QMap<QgsWmsParameter::Name, QgsWmsParameter> mWmsParameters;
1348  QMap<QString, QMap<QString, QString> > mExternalWMSParameters;
1349  QList<QgsProjectVersion> mVersions;
1350  };
1351 }
1352 
1353 #endif
QgsWms::QgsWmsParameters::layerFontBold
QString layerFontBold() const
Returns LAYERFONTBOLD parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1067
QgsWms::QgsWmsParameters::highlightGeom
QStringList highlightGeom() const
Returns HIGHLIGHT_GEOM as a list of string in WKT.
Definition: qgswmsparameters.cpp:658
QgsWms::QgsWmsParameter::GRID_INTERVAL_X
@ GRID_INTERVAL_X
Definition: qgswmsparameters.h:172
QgsWms::QgsWmsParameters::transparent
QString transparent() const
Returns TRANSPARENT parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:927
QgsWms::QgsWmsParameter::LAYERFONTSIZE
@ LAYERFONTSIZE
Definition: qgswmsparameters.h:124
QgsWms::QgsWmsParameter::toRectangle
QgsRectangle toRectangle() const
Converts the parameter into a rectangle.
Definition: qgswmsparameters.cpp:69
QgsWms::QgsWmsParameter::loadUrl
QString loadUrl() const
Loads the data associated to the parameter converted into an url.
Definition: qgswmsparameters.cpp:96
QgsWms::QgsWmsParameter::OPACITIES
@ OPACITIES
Definition: qgswmsparameters.h:138
QgsWms::QgsWmsParameters::srcHeight
QString srcHeight() const
Returns SRCHEIGHT parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:726
QgsWms::QgsWmsParameters
Provides an interface to retrieve and manipulate WMS parameters received from the client.
Definition: qgswmsparameters.h:324
QgsWms::QgsWmsParameter::mName
QgsWmsParameter::Name mName
Definition: qgswmsparameters.h:313
QgsWms::QgsWmsParameters::layerTitleSpaceAsDouble
double layerTitleSpaceAsDouble() const
Returns LAYERTITLESPACE as a double.
Definition: qgswmsparameters.cpp:1012
QgsWms::QgsWmsParameter::name
QString name() const
Returns the name of the parameter.
Definition: qgswmsparameters.cpp:194
QgsWms::QgsWmsParameter::SYMBOLHEIGHT
@ SYMBOLHEIGHT
Definition: qgswmsparameters.h:136
QgsWms::QgsWmsParameters::XML
@ XML
Definition: qgswmsparameters.h:338
QgsWms::QgsWmsParameters::set
void set(QgsWmsParameter::Name name, const QVariant &value)
Sets a parameter value thanks to its name.
Definition: qgswmsparameters.cpp:561
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELFONT
@ HIGHLIGHT_LABELFONT
Definition: qgswmsparameters.h:159
QgsWms::QgsWmsParameter::LAYERFONTCOLOR
@ LAYERFONTCOLOR
Definition: qgswmsparameters.h:125
QgsWms::QgsWmsParameter::QUERY_LAYERS
@ QUERY_LAYERS
Definition: qgswmsparameters.h:130
QgsWms::QgsWmsParameter::FEATURE_COUNT
@ FEATURE_COUNT
Definition: qgswmsparameters.h:131
QgsWms::QgsWmsParametersFilter::Type
Type
Filter type.
Definition: qgswmsparameters.h:38
QgsWms::QgsWmsParametersHighlightLayer::mLabel
QString mLabel
Definition: qgswmsparameters.h:70
QgsWms::QgsWmsParameter::EXTENT
@ EXTENT
Definition: qgswmsparameters.h:170
QgsWms::QgsWmsParameter::FORMAT_OPTIONS
@ FORMAT_OPTIONS
Definition: qgswmsparameters.h:178
QgsWms::QgsWmsParameters::infoFormatIsImage
bool infoFormatIsImage() const
Checks if INFO_FORMAT parameter is one of the image formats (PNG, JPG).
Definition: qgswmsparameters.cpp:830
QgsWms::QgsWmsParameters::wmsPrecisionAsInt
int wmsPrecisionAsInt() const
Returns WMS_PRECISION parameter as an int or its default value if not defined.
Definition: qgswmsparameters.cpp:1334
QgsWms::QgsWmsParametersHighlightLayer::mBufferColor
QColor mBufferColor
Definition: qgswmsparameters.h:76
QgsWms::QgsWmsParametersComposerMap
Definition: qgswmsparameters.h:80
QgsWms::QgsWmsParametersExternalLayer
Definition: qgswmsparameters.h:60
QgsWms::QgsWmsParameter::WITH_GEOMETRY
@ WITH_GEOMETRY
Definition: qgswmsparameters.h:174
QgsWms::QgsWmsParameters::opacities
QStringList opacities() const
Returns the list of opacities found in OPACITIES parameter.
Definition: qgswmsparameters.cpp:1399
QgsWms::QgsWmsParameters::symbolWidth
QString symbolWidth() const
Returns SYMBOLWIDTH parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1037
QgsWms::QgsWmsParameter::toInt
int toInt() const
Converts the parameter into an integer.
Definition: qgswmsparameters.cpp:83
QgsWms::QgsWmsParameters::layerFontItalicAsBool
bool layerFontItalicAsBool() const
Returns LAYERFONTITALIC as a boolean or its default value if not defined.
Definition: qgswmsparameters.cpp:1122
qgsrectangle.h
QgsWms::QgsWmsParameters::showFeatureCountAsBool
bool showFeatureCountAsBool() const
Returns SHOWFEATURECOUNT as a bool.
Definition: qgswmsparameters.cpp:972
QgsWms::QgsWmsParameter::toIntList
QList< int > toIntList(const char delimiter=',') const
Converts the parameter into a list of integers.
Definition: qgswmsparameters.cpp:153
QgsWms::QgsWmsParameters::isForce2D
bool isForce2D() const
Definition: qgswmsparameters.cpp:1483
QgsWms::QgsWmsParameters::wmtver
QString wmtver() const
Returns WMTVER parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1918
QgsWms::QgsWmsParameters::heightAsInt
int heightAsInt() const
Returns HEIGHT parameter as an int or its default value if not defined.
Definition: qgswmsparameters.cpp:716
QgsWms::QgsWmsParametersFilter::OGC_FE
@ OGC_FE
Definition: qgswmsparameters.h:41
qgsserverparameters.h
QgsWms::QgsWmsParameters::infoFormatVersion
int infoFormatVersion() const
Returns the infoFormat version for GML.
Definition: qgswmsparameters.cpp:860
QgsWms::QgsWmsParameter::LAYERFONTBOLD
@ LAYERFONTBOLD
Definition: qgswmsparameters.h:122
QgsWms::QgsWmsParameter::RULELABEL
@ RULELABEL
Definition: qgswmsparameters.h:153
QgsWms::QgsWmsParametersHighlightLayer::mSize
int mSize
Definition: qgswmsparameters.h:72
QgsWms::QgsWmsParameters::NONE
@ NONE
Definition: qgswmsparameters.h:332
QgsWms::QgsWmsParameters::TEXT
@ TEXT
Definition: qgswmsparameters.h:337
QgsWms::QgsWmsParameters::srcHeightAsInt
int srcHeightAsInt() const
Returns SRCHEIGHT parameter as an int or its default value if not defined.
Definition: qgswmsparameters.cpp:736
QgsWms::QgsWmsParametersComposerMap::mLayers
QList< QgsWmsParametersLayer > mLayers
Definition: qgswmsparameters.h:88
QgsWms::QgsWmsParametersComposerMap::mHighlightLayers
QList< QgsWmsParametersHighlightLayer > mHighlightLayers
Definition: qgswmsparameters.h:89
QgsWms::QgsWmsParameters::wmsPrecision
QString wmsPrecision() const
Returns WMS_PRECISION parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1329
QgsWms::QgsWmsParameter::BOXSPACE
@ BOXSPACE
Definition: qgswmsparameters.h:107
QgsWms::QgsWmsParameters::crs
QString crs() const
Returns CRS or an empty string if none is defined.
Definition: qgswmsparameters.cpp:673
QgsWms::QgsWmsParameters::Format
Format
Output format for the response.
Definition: qgswmsparameters.h:331
QgsWms::QgsWmsParameters::layerFontSize
QString layerFontSize() const
Returns LAYERFONTSIZE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1137
QgsWms::QgsWmsParametersExternalLayer::mName
QString mName
Definition: qgswmsparameters.h:61
QgsWms::QgsWmsParameters::legendSettings
QgsLegendSettings legendSettings() const
Returns legend settings.
Definition: qgswmsparameters.cpp:1220
QgsWms::QgsWmsParametersHighlightLayer::mWeight
int mWeight
Definition: qgswmsparameters.h:73
QgsWms::QgsWmsParameters::iconLabelSpace
QString iconLabelSpace() const
Returns ICONLABELSPACE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1047
QgsWms::QgsWmsParameters::operator[]
QgsWmsParameter operator[](QgsWmsParameter::Name name) const
Returns the parameter corresponding to name.
Definition: qgswmsparameters.cpp:556
QgsWms::QgsWmsParameter::Y
@ Y
Definition: qgswmsparameters.h:151
QgsWms::QgsWmsParameters::bbox
QString bbox() const
Returns BBOX if defined or an empty string.
Definition: qgswmsparameters.cpp:696
QgsWms::QgsWmsParameters::infoFormatAsString
QString infoFormatAsString() const
Returns INFO_FORMAT parameter as a string.
Definition: qgswmsparameters.cpp:825
QgsWms::QgsWmsParametersLayer::mExternalUri
QString mExternalUri
Definition: qgswmsparameters.h:56
QgsWms::QgsWmsParameter::STYLE
@ STYLE
Definition: qgswmsparameters.h:133
QgsWms::QgsWmsParameters::featureCountAsInt
int featureCountAsInt() const
Returns FEATURE_COUNT as an integer.
Definition: qgswmsparameters.cpp:982
QgsWms::QgsWmsParameter::FI_LINE_TOLERANCE
@ FI_LINE_TOLERANCE
Definition: qgswmsparameters.h:142
QgsWms::QgsWmsParameter::ITEMFONTITALIC
@ ITEMFONTITALIC
Definition: qgswmsparameters.h:117
QgsWms::QgsWmsParameters::i
QString i() const
Returns I parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:872
QgsWms::QgsWmsParameter::SHOWFEATURECOUNT
@ SHOWFEATURECOUNT
Definition: qgswmsparameters.h:132
QgsWms::QgsWmsParameters::highlightLabelWeight
QStringList highlightLabelWeight() const
Returns HIGHLIGHT_LABELWEIGHT as a list of string.
Definition: qgswmsparameters.cpp:1294
QgsWms::QgsWmsParameters::boxSpace
QString boxSpace() const
Returns BOXSPACE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:987
QgsWms::QgsWmsParametersComposerMap::mScale
float mScale
Definition: qgswmsparameters.h:84
QgsWms::QgsWmsParameters::CODEC
@ CODEC
Definition: qgswmsparameters.h:352
QgsWms::QgsWmsParametersLayer::mNickname
QString mNickname
Definition: qgswmsparameters.h:51
QgsWms::QgsWmsParameters::itemFontBoldAsBool
bool itemFontBoldAsBool() const
Returns ITEMFONTBOLD as a boolean or its default value if not defined.
Definition: qgswmsparameters.cpp:1112
QgsWms::QgsWmsParameters::highlightLabelBufferSizeAsFloat
QList< double > highlightLabelBufferSizeAsFloat() const
Returns HIGHLIGHT_LABELBUFFERSIZE as a list of float.
Definition: qgswmsparameters.cpp:1324
QgsWms::QgsWmsParameters::SCALE
@ SCALE
Definition: qgswmsparameters.h:348
QgsWms::QgsWmsParameters::transparentAsBool
bool transparentAsBool() const
Returns TRANSPARENT parameter as a bool or its default value if not defined.
Definition: qgswmsparameters.cpp:932
QgsWms::QgsWmsParameter::TRANSPARENT
@ TRANSPARENT
Definition: qgswmsparameters.h:166
QgsWms::QgsWmsParametersComposerMap::mRotation
float mRotation
Definition: qgswmsparameters.h:85
QgsWms::QgsWmsParameters::layerTitleSpace
QString layerTitleSpace() const
Returns LAYERTITLESPACE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1007
QgsWms::QgsWmsParameter::WIDTH
@ WIDTH
Definition: qgswmsparameters.h:110
QgsWms::QgsWmsParameters::itemFontColorAsColor
QColor itemFontColorAsColor() const
Returns ITEMFONTCOLOR as a color.
Definition: qgswmsparameters.cpp:1172
QgsWms::QgsWmsParameters::dpi
QString dpi() const
Returns DPI parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:746
QgsWms::QgsWmsParameters::featureCount
QString featureCount() const
Returns FEATURE_COUNT parameter or an empty string if none is defined.
Definition: qgswmsparameters.cpp:977
QgsWms::QgsWmsParameter::INFO_FORMAT
@ INFO_FORMAT
Definition: qgswmsparameters.h:147
QgsWms::QgsWmsParameters::itemFontItalic
QString itemFontItalic() const
Returns ITEMFONTITALIC parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1127
QgsWms::QgsWmsParameter::GRID_INTERVAL_Y
@ GRID_INTERVAL_Y
Definition: qgswmsparameters.h:173
QgsWms::QgsWmsParameters::symbolSpace
QString symbolSpace() const
Returns SYMBOLSPACE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1017
QgsServerParameters::value
QString value(const QString &key) const
Returns the value of a parameter.
Definition: qgsserverparameters.cpp:532
QgsWms::QgsWmsParametersLayer::mStyle
QString mStyle
Definition: qgswmsparameters.h:55
QgsWms::QgsWmsParameter::raiseError
void raiseError() const
Raises an error in case of an invalid conversion.
Definition: qgswmsparameters.cpp:44
QgsWms::QgsWmsParametersComposerMap::mGridX
float mGridX
Definition: qgswmsparameters.h:86
QgsWms::QgsWmsParametersLayer
Definition: qgswmsparameters.h:50
QgsRectangle
A rectangle specified with double values.
Definition: qgsrectangle.h:42
QgsWms::QgsWmsParameter::UNKNOWN
@ UNKNOWN
Definition: qgswmsparameters.h:106
QgsWms::QgsWmsParametersHighlightLayer::mFont
QString mFont
Definition: qgswmsparameters.h:74
qgsogcutils.h
QgsWms::QgsWmsParameters::itemFontSize
QString itemFontSize() const
Returns ITEMFONTSIZE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1157
QgsWms::QgsWmsParametersFilter
Definition: qgswmsparameters.h:35
QgsWms::QgsWmsParameters::PNG
@ PNG
Definition: qgswmsparameters.h:334
QgsWms::QgsWmsParameters::highlightLabelWeightAsInt
QList< int > highlightLabelWeightAsInt() const
Returns HIGHLIGHT_LABELWEIGHT as a list of int.
Definition: qgswmsparameters.cpp:1299
QgsWms::QgsWmsParameter::I
@ I
Definition: qgswmsparameters.h:148
QgsWms::QgsWmsParametersHighlightLayer::mName
QString mName
Definition: qgswmsparameters.h:67
QgsWms::QgsWmsParameter::LAYERFONTFAMILY
@ LAYERFONTFAMILY
Definition: qgswmsparameters.h:121
QgsWms::QgsWmsParameter::X
@ X
Definition: qgswmsparameters.h:150
QgsWms::QgsWmsParameters::itemFontBold
QString itemFontBold() const
Returns ITEMFONTBOLD parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1077
QgsWms::QgsWmsParameter::LAYERSPACE
@ LAYERSPACE
Definition: qgswmsparameters.h:128
QgsWms::QgsWmsParameters::highlightLabelFont
QStringList highlightLabelFont() const
Returns HIGHLIGHT_LABELFONT.
Definition: qgswmsparameters.cpp:1304
QgsWms::QgsWmsParametersComposerMap::mId
int mId
Definition: qgswmsparameters.h:81
QgsWms::QgsWmsParameters::withMapTip
bool withMapTip() const
withMapTip
Definition: qgswmsparameters.cpp:1913
QgsWms::QgsWmsParameter::HIGHLIGHT_GEOM
@ HIGHLIGHT_GEOM
Definition: qgswmsparameters.h:156
QgsWms::QgsWmsParameters::imageQuality
QString imageQuality() const
Returns IMAGE_QUALITY parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:947
QgsWms::QgsWmsParameters::opacitiesAsInt
QList< int > opacitiesAsInt() const
Returns the list of opacities found in OPACITIES parameter as integers.
Definition: qgswmsparameters.cpp:1404
QgsWms::QgsWmsParameter::SRS
@ SRS
Definition: qgswmsparameters.h:109
QgsWms::QgsWmsParameters::highlightLabelBufferSize
QStringList highlightLabelBufferSize() const
Returns HIGHLIGHT_LABELBUFFERSIZE.
Definition: qgswmsparameters.cpp:1319
QgsWms::QgsWmsParameter::FI_POLYGON_TOLERANCE
@ FI_POLYGON_TOLERANCE
Definition: qgswmsparameters.h:141
QgsWms::QgsWmsParameters::highlightLabelBufferColor
QStringList highlightLabelBufferColor() const
Returns HIGHLIGHT_LABELBUFFERCOLOR as a list of string.
Definition: qgswmsparameters.cpp:1309
QgsWms::QgsWmsParameters::srcWidth
QString srcWidth() const
Returns SRCWIDTH parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:731
QgsWms::QgsWmsParameter::FI_POINT_TOLERANCE
@ FI_POINT_TOLERANCE
Definition: qgswmsparameters.h:143
QgsWms::QgsWmsParameter::LAYER
@ LAYER
Definition: qgswmsparameters.h:120
QgsServerParameters::version
QString version() const
Returns VERSION parameter as a string or an empty string if not defined.
Definition: qgsserverparameters.cpp:477
QgsWms::QgsWmsParameters::height
QString height() const
Returns HEIGHT parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:706
QgsWms::QgsWmsParametersFilter::UNKNOWN
@ UNKNOWN
Definition: qgswmsparameters.h:39
QgsWms::QgsWmsParameters::symbolHeight
QString symbolHeight() const
Returns SYMBOLHEIGHT parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1027
QgsWms::QgsWmsParameters::queryLayersNickname
QStringList queryLayersNickname() const
Returns nickname of layers found in QUERY_LAYERS parameter.
Definition: qgswmsparameters.cpp:1416
QgsWms::QgsWmsParameters::sldBody
QString sldBody() const
Returns SLD_body if defined or an empty string.
Definition: qgswmsparameters.cpp:1339
QgsWms::QgsWmsParameters::JSON
@ JSON
Definition: qgswmsparameters.h:341
QgsWms::QgsWmsParameters::widthAsInt
int widthAsInt() const
Returns WIDTH parameter as an int or its default value if not defined.
Definition: qgswmsparameters.cpp:721
QgsWms::QgsWmsParameters::layerFontFamily
QString layerFontFamily() const
Returns LAYERFONTFAMILY parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1057
QgsWms::QgsWmsParameter::IMAGE_QUALITY
@ IMAGE_QUALITY
Definition: qgswmsparameters.h:114
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELBUFFERCOLOR
@ HIGHLIGHT_LABELBUFFERCOLOR
Definition: qgswmsparameters.h:163
QgsWms::QgsWmsParameters::~QgsWmsParameters
virtual ~QgsWmsParameters() override=default
QgsWms::QgsWmsParametersComposerMap::mGridY
float mGridY
Definition: qgswmsparameters.h:87
QgsWms::QgsWmsParameter::toColor
QColor toColor() const
Converts the parameter into a color.
Definition: qgswmsparameters.cpp:126
QgsWms::QgsWmsParameter::HIGHLIGHT_SYMBOL
@ HIGHLIGHT_SYMBOL
Definition: qgswmsparameters.h:157
QgsWms::QgsWmsParameters::polygonToleranceAsInt
int polygonToleranceAsInt() const
Returns FI_POLYGON_TOLERANCE parameter as an integer.
Definition: qgswmsparameters.cpp:1097
QgsWms::QgsWmsParameters::itemFontColor
QString itemFontColor() const
Returns ITEMFONTCOLOR parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1167
QgsWms::QgsWmsParameters::x
QString x() const
Returns X parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:892
QgsWms::QgsWmsParameters::versionAsNumber
QgsProjectVersion versionAsNumber() const
Returns VERSION parameter if defined or its default value.
Definition: qgswmsparameters.cpp:756
QgsWms::QgsWmsParameter::WMS_PRECISION
@ WMS_PRECISION
Definition: qgswmsparameters.h:165
QgsWms::QgsWmsParameter::LAYERTITLESPACE
@ LAYERTITLESPACE
Definition: qgswmsparameters.h:129
QgsWms::QgsWmsParameters::lineTolerance
QString lineTolerance() const
Returns FI_LINE_TOLERANCE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1087
QgsWms::QgsWmsParameters::yAsInt
int yAsInt() const
Returns Y parameter as an int or its default value if not defined.
Definition: qgswmsparameters.cpp:907
QgsWms::QgsWmsParametersFilter::SQL
@ SQL
Definition: qgswmsparameters.h:40
QgsWms::QgsWmsParameters::layerFont
QFont layerFont() const
Returns the layer font (built thanks to the LAYERFONTFAMILY, LAYERFONTSIZE, LAYERFONTBOLD,...
Definition: qgswmsparameters.cpp:1177
QgsWms::QgsWmsParameters::highlightLabelColor
QStringList highlightLabelColor() const
Returns HIGHLIGHT_LABELCOLOR as a list of string.
Definition: qgswmsparameters.cpp:1284
QgsServerParameterDefinition
Definition of a parameter with basic conversion methods.
Definition: qgsserverparameters.h:35
QgsWms::QgsWmsParametersFilter::mType
QgsWmsParametersFilter::Type mType
Definition: qgswmsparameters.h:45
QgsWms::QgsWmsParameters::USE_TITLE_AS_LAYERNAME
@ USE_TITLE_AS_LAYERNAME
Definition: qgswmsparameters.h:351
QgsWms::QgsWmsParameter::QgsWmsParameter
QgsWmsParameter(const QgsWmsParameter::Name name=QgsWmsParameter::UNKNOWN, const QVariant::Type type=QVariant::String, const QVariant defaultValue=QVariant(""))
Constructor for QgsWmsParameter.
Definition: qgswmsparameters.cpp:31
QgsWms::QgsWmsParameter::toDoubleList
QList< double > toDoubleList(const char delimiter=',') const
Converts the parameter into a list of doubles.
Definition: qgswmsparameters.cpp:167
QgsWms::QgsWmsParameter::ITEMFONTBOLD
@ ITEMFONTBOLD
Definition: qgswmsparameters.h:116
QgsWms::QgsWmsParameters::layerFontSizeAsDouble
double layerFontSizeAsDouble() const
Returns LAYERFONTSIZE as a double.
Definition: qgswmsparameters.cpp:1142
qgslegendsettings.h
QgsWms::QgsWmsParameters::backgroundColor
QString backgroundColor() const
Returns BGCOLOR parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1649
QgsWms::QgsWmsParameters::symbolSpaceAsDouble
double symbolSpaceAsDouble() const
Returns SYMBOLSPACE as a double or its default value if not defined.
Definition: qgswmsparameters.cpp:1022
QgsWms::QgsWmsParametersHighlightLayer
Definition: qgswmsparameters.h:66
QgsWms::QgsWmsParameters::ruleLabelAsBool
bool ruleLabelAsBool() const
Returns RULELABEL as a bool.
Definition: qgswmsparameters.cpp:922
QgsWms::QgsWmsParametersComposerMap::mHasExtent
bool mHasExtent
Definition: qgswmsparameters.h:82
QgsWms::QgsWmsParameters::highlightSymbol
QStringList highlightSymbol() const
Returns HIGHLIGHT_SYMBOL as a list of string.
Definition: qgswmsparameters.cpp:668
QgsWms::QgsWmsParametersComposerMap::mExtent
QgsRectangle mExtent
Definition: qgswmsparameters.h:83
QgsWms::QgsWmsParameters::tiled
QString tiled() const
Returns TILED parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:957
QgsWms::QgsWmsParameters::lineToleranceAsInt
int lineToleranceAsInt() const
Returns FI_LINE_TOLERANCE parameter as an integer.
Definition: qgswmsparameters.cpp:1102
QgsWms::QgsWmsParameter::toDouble
double toDouble() const
Converts the parameter into a double.
Definition: qgswmsparameters.cpp:181
QgsWms::QgsWmsParameters::xAsInt
int xAsInt() const
Returns X parameter as an int or its default value if not defined.
Definition: qgswmsparameters.cpp:902
QgsWms::QgsWmsParameters::dpiAsDouble
double dpiAsDouble() const
Returns DPI parameter as an int or its default value if not defined.
Definition: qgswmsparameters.cpp:751
QgsLegendSettings
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
Definition: qgslegendsettings.h:39
QgsWms::QgsWmsParameters::SVG
@ SVG
Definition: qgswmsparameters.h:335
QgsWms::QgsWmsParameter::SCALE
@ SCALE
Definition: qgswmsparameters.h:154
QgsWms::QgsWmsParameter::SLD
@ SLD
Definition: qgswmsparameters.h:139
QgsWms::QgsWmsParametersLayer::mSelection
QStringList mSelection
Definition: qgswmsparameters.h:54
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELSTRING
@ HIGHLIGHT_LABELSTRING
Definition: qgswmsparameters.h:158
QgsWms::QgsWmsParameter::ROTATION
@ ROTATION
Definition: qgswmsparameters.h:171
QgsWms::QgsWmsParametersFilter::mVersion
QgsOgcUtils::FilterVersion mVersion
Definition: qgswmsparameters.h:46
QgsWms::QgsWmsParameters::layersParameters
QList< QgsWmsParametersLayer > layersParameters() const
Returns parameters for each layer found in LAYER/LAYERS.
Definition: qgswmsparameters.cpp:1509
QgsWms::QgsWmsParameters::itemFontSizeAsDouble
double itemFontSizeAsDouble() const
Returns ITEMFONTSIZE as a double.
Definition: qgswmsparameters.cpp:1162
QgsWms::QgsWmsParameters::bboxAsRectangle
QgsRectangle bboxAsRectangle() const
Returns BBOX as a rectangle if defined and valid.
Definition: qgswmsparameters.cpp:701
QgsWms::QgsWmsParameters::j
QString j() const
Returns J parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:877
QgsWms::QgsWmsParameter::toUrl
QUrl toUrl() const
Converts the parameter into an url.
Definition: qgswmsparameters.cpp:113
QgsWms::QgsWmsParameters::pointToleranceAsInt
int pointToleranceAsInt() const
Returns FI_POINT_TOLERANCE parameter as an integer.
Definition: qgswmsparameters.cpp:1107
QgsWms::QgsWmsParameters::filterGeom
QString filterGeom() const
Returns the filter geometry found in FILTER_GEOM parameter.
Definition: qgswmsparameters.cpp:1389
QgsWms::QgsWmsParametersHighlightLayer::mBufferSize
float mBufferSize
Definition: qgswmsparameters.h:75
QgsWms::QgsWmsParameters::showFeatureCount
QString showFeatureCount() const
Returns SHOWFEATURECOUNT parameter or an empty string if none is defined.
Definition: qgswmsparameters.cpp:967
QgsWms::QgsWmsParameters::layerTitle
QString layerTitle() const
Returns LAYERTITLE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1210
QgsWms::QgsWmsParameter::TEMPLATE
@ TEMPLATE
Definition: qgswmsparameters.h:169
QgsWms::QgsWmsParametersFilter::mFilter
QString mFilter
Definition: qgswmsparameters.h:44
QgsWms::QgsWmsParameter::ATLAS_PK
@ ATLAS_PK
Definition: qgswmsparameters.h:177
QgsWms::QgsWmsParameters::itemFontItalicAsBool
bool itemFontItalicAsBool() const
Returns ITEMFONTITALIC as a boolean or its default value if not defined.
Definition: qgswmsparameters.cpp:1132
QgsWms::QgsWmsParameter::BBOX
@ BBOX
Definition: qgswmsparameters.h:112
QgsWms::QgsWmsParameters::format
Format format() const
Returns format.
Definition: qgswmsparameters.cpp:790
QgsWms::QgsWmsParameter::ITEMFONTFAMILY
@ ITEMFONTFAMILY
Definition: qgswmsparameters.h:115
QgsWms::QgsWmsParameter::ITEMFONTSIZE
@ ITEMFONTSIZE
Definition: qgswmsparameters.h:118
QgsWms::QgsWmsParameters::itemFont
QFont itemFont() const
Returns the item font (built thanks to the ITEMFONTFAMILY, ITEMFONTSIZE, ITEMFONTBOLD,...
Definition: qgswmsparameters.cpp:1193
QgsWms::QgsWmsParameter::LAYERTITLE
@ LAYERTITLE
Definition: qgswmsparameters.h:126
QgsWms::QgsWmsParameters::PDF
@ PDF
Definition: qgswmsparameters.h:336
QgsWms::QgsWmsParameters::externalLayersParameters
QList< QgsWmsParametersExternalLayer > externalLayersParameters() const
Returns parameters for each external layer.
Definition: qgswmsparameters.cpp:1632
QgsWms::QgsWmsParameter::FILTER_GEOM
@ FILTER_GEOM
Definition: qgswmsparameters.h:145
QgsWms::QgsWmsParameters::composerMapParameters
QgsWmsParametersComposerMap composerMapParameters(int mapId) const
Returns the requested parameters for a composer map parameter.
Definition: qgswmsparameters.cpp:1664
QgsOgcUtils::FilterVersion
FilterVersion
OGC filter version.
Definition: qgsogcutils.h:178
QgsWms::QgsWmsParameters::scaleAsDouble
double scaleAsDouble() const
Returns SCALE as a double.
Definition: qgswmsparameters.cpp:942
QgsWms::QgsWmsParameters::dxfFormatOptions
QMap< DxfFormatOption, QString > dxfFormatOptions() const
Returns a map of DXF options defined within FORMAT_OPTIONS parameter.
Definition: qgswmsparameters.cpp:2039
QgsWms::QgsWmsParameters::QgsWmsParameters
QgsWmsParameters()
Constructor for WMS parameters with default values only.
Definition: qgswmsparameters.cpp:214
QgsWms::QgsWmsParameters::composerTemplate
QString composerTemplate() const
Returns TEMPLATE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1659
QgsWms::QgsWmsParametersHighlightLayer::mGeom
QgsGeometry mGeom
Definition: qgswmsparameters.h:68
QgsWms
Median cut implementation.
Definition: qgsdxfwriter.cpp:23
QgsWms::QgsWmsParameters::allStyles
QStringList allStyles() const
Returns styles found in STYLE and STYLES parameters.
Definition: qgswmsparameters.cpp:1421
QgsDxfExport::SymbologyExport
SymbologyExport
Definition: qgsdxfexport.h:102
QgsWms::QgsWmsParameter::BGCOLOR
@ BGCOLOR
Definition: qgswmsparameters.h:167
QgsWms::QgsWmsParameters::backgroundColorAsColor
QColor backgroundColorAsColor() const
Returns BGCOLOR parameter as a QColor or its default value if not defined.
Definition: qgswmsparameters.cpp:1654
QgsWms::QgsWmsParameter::toGeomList
QList< QgsGeometry > toGeomList(const char delimiter=',') const
Converts the parameter into a list of geometries.
Definition: qgswmsparameters.cpp:55
QgsWms::QgsWmsParameter::TILED
@ TILED
Definition: qgswmsparameters.h:181
QgsWms::QgsWmsParameters::layerFontItalic
QString layerFontItalic() const
Returns LAYERFONTITALIC parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1117
QgsWms::QgsWmsParameter::LAYERS
@ LAYERS
Definition: qgswmsparameters.h:127
QgsWms::QgsWmsParameter::J
@ J
Definition: qgswmsparameters.h:149
QgsWms::QgsWmsParameters::layerSpace
QString layerSpace() const
Returns LAYERSPACE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:997
QgsWms::QgsWmsParameters::highlightLabelSizeAsInt
QList< int > highlightLabelSizeAsInt() const
Returns HIGHLIGHT_LABELSIZE as a list of int An exception is raised if an invalid size is found.
Definition: qgswmsparameters.cpp:1279
QgsWms::QgsWmsParameters::layoutParameter
QString layoutParameter(const QString &id, bool &ok) const
Returns a layout parameter thanks to its id.
Definition: qgswmsparameters.cpp:1250
QgsWms::QgsWmsParameters::FORCE_2D
@ FORCE_2D
Definition: qgswmsparameters.h:354
QgsGeometry
A geometry is the spatial representation of a feature.
Definition: qgsgeometry.h:124
QgsWms::QgsWmsParameters::atlasPk
QStringList atlasPk() const
Returns the ATLAS_PK parameter.
Definition: qgswmsparameters.cpp:1264
QgsWms::QgsWmsParameters::layerTitleAsBool
bool layerTitleAsBool() const
Returns LAYERTITLE as a bool or its default value if not defined.
Definition: qgswmsparameters.cpp:1215
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELSIZE
@ HIGHLIGHT_LABELSIZE
Definition: qgswmsparameters.h:160
QgsWms::QgsWmsParameter::WITH_MAPTIP
@ WITH_MAPTIP
Definition: qgswmsparameters.h:175
QgsWms::QgsWmsParameters::highlightLabelColorAsColor
QList< QColor > highlightLabelColorAsColor() const
Returns HIGHLIGHT_LABELCOLOR as a list of color.
Definition: qgswmsparameters.cpp:1289
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELWEIGHT
@ HIGHLIGHT_LABELWEIGHT
Definition: qgswmsparameters.h:161
QgsWms::QgsWmsParameters::iconLabelSpaceAsDouble
double iconLabelSpaceAsDouble() const
Returns ICONLABELSPACE as a double or its default value if not defined.
Definition: qgswmsparameters.cpp:1052
QgsWms::QgsWmsParameters::GML
@ GML
Definition: qgswmsparameters.h:340
QgsWms::QgsWmsParameters::scale
QString scale() const
Returns SCALE parameter or an empty string if none is defined.
Definition: qgswmsparameters.cpp:937
QgsWms::QgsWmsParameters::rule
QString rule() const
Returns RULE parameter or an empty string if none is defined.
Definition: qgswmsparameters.cpp:912
QgsWms::QgsWmsParameters::layerFontBoldAsBool
bool layerFontBoldAsBool() const
Returns LAYERFONTBOLD as a boolean or its default value if not defined.
Definition: qgswmsparameters.cpp:1072
QgsWms::QgsWmsParameter::isValid
bool isValid() const override
Returns true if the parameter is valid, false otherwise.
Definition: qgswmsparameters.cpp:39
QgsWms::QgsWmsParameters::polygonTolerance
QString polygonTolerance() const
Returns FI_POLYGON_TOLERANCE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1082
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELBUFFERSIZE
@ HIGHLIGHT_LABELBUFFERSIZE
Definition: qgswmsparameters.h:164
QgsWms::QgsWmsParameter::toStyleList
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...
Definition: qgswmsparameters.cpp:50
QgsWms::QgsWmsParameters::withGeometry
bool withGeometry() const
Returns if the client wants the feature info response with geometry information.
Definition: qgswmsparameters.cpp:1908
QgsWms::QgsWmsParameters::jAsInt
int jAsInt() const
Returns J parameter as an int or its default value if not defined.
Definition: qgswmsparameters.cpp:887
QgsWms::QgsWmsParameters::JPG
@ JPG
Definition: qgswmsparameters.h:333
QgsWms::QgsWmsParameter::FORMAT
@ FORMAT
Definition: qgswmsparameters.h:146
QgsWms::QgsWmsParameter::SLD_BODY
@ SLD_BODY
Definition: qgswmsparameters.h:140
QgsWms::QgsWmsParameters::dxfLayerAttributes
QStringList dxfLayerAttributes() const
Returns the DXF LAYERATTRIBUTES parameter.
Definition: qgswmsparameters.cpp:1964
QgsWms::QgsWmsParameter::WMTVER
@ WMTVER
Definition: qgswmsparameters.h:176
QgsWms::QgsWmsParameters::itemFontFamily
QString itemFontFamily() const
Returns ITEMFONTFAMILY parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1062
QgsWms::QgsWmsParameter::SYMBOLWIDTH
@ SYMBOLWIDTH
Definition: qgswmsparameters.h:137
QgsWms::QgsWmsParameter::SRCHEIGHT
@ SRCHEIGHT
Definition: qgswmsparameters.h:180
QgsWms::QgsWmsParameters::dxfMode
QgsDxfExport::SymbologyExport dxfMode() const
Returns the DXF MODE parameter.
Definition: qgswmsparameters.cpp:2003
QgsWms::QgsWmsParameters::y
QString y() const
Returns Y parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:897
QgsWms::QgsWmsParameters::tiledAsBool
bool tiledAsBool() const
Returns TILED parameter as a boolean.
Definition: qgswmsparameters.cpp:962
QgsWms::QgsWmsParameter::~QgsWmsParameter
virtual ~QgsWmsParameter() override=default
Default destructor for QgsWmsParameter.
QgsWms::QgsWmsParameters::layerFontColor
QString layerFontColor() const
Returns LAYERFONTCOLOR parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1147
QgsWms::QgsWmsParameter
WMS parameter received from the client.
Definition: qgswmsparameters.h:99
QgsWms::QgsWmsParametersHighlightLayer::mSld
QString mSld
Definition: qgswmsparameters.h:69
QgsWms::QgsWmsParameters::NO_MTEXT
@ NO_MTEXT
Definition: qgswmsparameters.h:353
QgsWms::QgsWmsParameters::externalWMSUri
QString externalWMSUri(const QString &id) const
Returns the external WMS uri.
Definition: qgswmsparameters.cpp:1881
qgsdxfexport.h
QgsWms::QgsWmsParameter::DPI
@ DPI
Definition: qgswmsparameters.h:168
QgsWms::QgsWmsParameter::SRCWIDTH
@ SRCWIDTH
Definition: qgswmsparameters.h:179
QgsServerParameters
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from ...
Definition: qgsserverparameters.h:229
QgsWms::QgsWmsParametersHighlightLayer::mColor
QColor mColor
Definition: qgswmsparameters.h:71
QgsWms::QgsWmsParameter::toColorList
QList< QColor > toColorList(const char delimiter=',') const
Converts the parameter into a list of colors.
Definition: qgswmsparameters.cpp:139
QgsWms::QgsWmsParameters::formatAsString
QString formatAsString() const
Returns FORMAT parameter as a string.
Definition: qgswmsparameters.cpp:779
QgsWms::QgsWmsParameter::SYMBOLSPACE
@ SYMBOLSPACE
Definition: qgswmsparameters.h:135
QgsWms::QgsWmsParameters::iAsInt
int iAsInt() const
Returns I parameter as an int or its default value if not defined.
Definition: qgswmsparameters.cpp:882
QgsWms::QgsWmsParameter::HEIGHT
@ HEIGHT
Definition: qgswmsparameters.h:111
QgsWms::QgsWmsParameter::ICONLABELSPACE
@ ICONLABELSPACE
Definition: qgswmsparameters.h:113
QgsWms::QgsWmsParameters::infoFormat
Format infoFormat() const
Returns infoFormat.
Definition: qgswmsparameters.cpp:835
QgsWms::QgsWmsParameters::versionIsValid
bool versionIsValid(const QString version) const
Returns true if version is valid, false otherwise.
Definition: qgswmsparameters.cpp:774
QgsWms::QgsWmsParameters::highlightGeomAsGeom
QList< QgsGeometry > highlightGeomAsGeom() const
Returns HIGHLIGHT_GEOM as a list of geometries.
Definition: qgswmsparameters.cpp:663
QgsWms::QgsWmsParameters::filters
QStringList filters() const
Returns the list of filters found in FILTER parameter.
Definition: qgswmsparameters.cpp:1344
QgsWms::QgsWmsParameters::dxfUseLayerTitleAsName
bool dxfUseLayerTitleAsName() const
Returns the DXF USE_TITLE_AS_LAYERNAME parameter.
Definition: qgswmsparameters.cpp:1977
QgsWms::QgsWmsParameter::RULE
@ RULE
Definition: qgswmsparameters.h:152
QgsWms::QgsWmsParameters::pointTolerance
QString pointTolerance() const
Returns FI_POINT_TOLERANCE parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:1092
QgsWms::QgsWmsParameters::highlightLabelString
QStringList highlightLabelString() const
Returns HIGHLIGHT_LABELSTRING as a list of string.
Definition: qgswmsparameters.cpp:1269
QgsWms::QgsWmsParameters::dump
void dump() const
Dumps parameters.
Definition: qgswmsparameters.cpp:622
qgsprojectversion.h
QgsWms::QgsWmsParametersLayer::mOpacity
int mOpacity
Definition: qgswmsparameters.h:52
QgsWms::QgsWmsParameters::imageQualityAsInt
int imageQualityAsInt() const
Returns IMAGE_QUALITY parameter as an integer.
Definition: qgswmsparameters.cpp:952
QgsWms::QgsWmsParameters::dxfCodec
QString dxfCodec() const
Returns the DXF CODEC parameter.
Definition: qgswmsparameters.cpp:2027
QgsWms::QgsWmsParameter::ITEMFONTCOLOR
@ ITEMFONTCOLOR
Definition: qgswmsparameters.h:119
QgsWms::QgsWmsParameters::selections
QStringList selections() const
Returns the list of feature selection found in SELECTION parameter.
Definition: qgswmsparameters.cpp:1394
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELCOLOR
@ HIGHLIGHT_LABELCOLOR
Definition: qgswmsparameters.h:162
QgsWms::QgsWmsParameter::CRS
@ CRS
Definition: qgswmsparameters.h:108
QgsWms::QgsWmsParameter::mId
int mId
Definition: qgswmsparameters.h:314
QgsWms::QgsWmsParameters::highlightLabelSize
QStringList highlightLabelSize() const
Returns HIGHLIGHT_LABELSIZE as a list of string.
Definition: qgswmsparameters.cpp:1274
QgsWms::QgsWmsParameter::Name
Name
Available parameters for WMS requests.
Definition: qgswmsparameters.h:105
QgsWms::QgsWmsParameters::layerSpaceAsDouble
double layerSpaceAsDouble() const
Returns LAYERSPACE as a double or its default value if not defined.
Definition: qgswmsparameters.cpp:1002
QgsWms::QgsWmsParameters::symbolHeightAsDouble
double symbolHeightAsDouble() const
Returns SYMBOLHEIGHT as a double or its default value if not defined.
Definition: qgswmsparameters.cpp:1032
QgsWms::QgsWmsParameters::boxSpaceAsDouble
double boxSpaceAsDouble() const
Returns BOXSPACE as a double or its default value if not defined.
Definition: qgswmsparameters.cpp:992
QgsWms::QgsWmsParameters::highlightLayersParameters
QList< QgsWmsParametersHighlightLayer > highlightLayersParameters() const
Returns parameters for each highlight layer.
Definition: qgswmsparameters.cpp:1584
QgsWms::QgsWmsParameters::HTML
@ HTML
Definition: qgswmsparameters.h:339
QgsWms::QgsWmsParameters::LAYERATTRIBUTES
@ LAYERATTRIBUTES
Definition: qgswmsparameters.h:350
QgsWms::QgsWmsParameters::DxfFormatOption
DxfFormatOption
Options for DXF format.
Definition: qgswmsparameters.h:347
QgsWms::QgsWmsParameter::FILTER
@ FILTER
Definition: qgswmsparameters.h:144
QgsWms::QgsWmsParameters::dimensionValues
QMap< QString, QString > dimensionValues() const
Returns the dimensions parameter.
Definition: qgswmsparameters.cpp:2062
QgsWms::QgsWmsParameters::width
QString width() const
Returns WIDTH parameter or an empty string if not defined.
Definition: qgswmsparameters.cpp:711
QgsWms::QgsWmsParameter::STYLES
@ STYLES
Definition: qgswmsparameters.h:134
QgsProjectVersion
A class to describe the version of a project.
Definition: qgsprojectversion.h:32
QgsWms::QgsWmsParameters::srcWidthAsInt
int srcWidthAsInt() const
Returns SRCWIDTH parameter as an int or its default value if not defined.
Definition: qgswmsparameters.cpp:741
QgsWms::QgsWmsParametersExternalLayer::mUri
QString mUri
Definition: qgswmsparameters.h:62
QgsWms::QgsWmsParameters::allLayersNickname
QStringList allLayersNickname() const
Returns nickname of layers found in LAYER and LAYERS parameters.
Definition: qgswmsparameters.cpp:1409
QgsWms::QgsWmsParametersLayer::mFilter
QList< QgsWmsParametersFilter > mFilter
Definition: qgswmsparameters.h:53
QgsOgcUtils::FILTER_OGC_1_0
@ FILTER_OGC_1_0
Definition: qgsogcutils.h:179
QgsWms::QgsWmsParameters::highlightLabelBufferColorAsColor
QList< QColor > highlightLabelBufferColorAsColor() const
Returns HIGHLIGHT_LABELBUFFERCOLOR as a list of colors.
Definition: qgswmsparameters.cpp:1314
QgsWms::QgsWmsParameters::MODE
@ MODE
Definition: qgswmsparameters.h:349
QgsWms::QgsWmsParameters::ruleLabel
QString ruleLabel() const
Returns RULELABEL parameter or an empty string if none is defined.
Definition: qgswmsparameters.cpp:917
QgsWms::QgsWmsParameters::dxfScale
double dxfScale() const
Returns the DXF SCALE parameter.
Definition: qgswmsparameters.cpp:1990
QgsWms::QgsWmsParameter::SELECTION
@ SELECTION
Definition: qgswmsparameters.h:155
QgsWms::QgsWmsParameters::symbolWidthAsDouble
double symbolWidthAsDouble() const
Returns SYMBOLWIDTH as a double or its default value if not defined.
Definition: qgswmsparameters.cpp:1042
QgsWms::QgsWmsParameter::LAYERFONTITALIC
@ LAYERFONTITALIC
Definition: qgswmsparameters.h:123
QgsWms::QgsWmsParameters::noMText
bool noMText() const
Definition: qgswmsparameters.cpp:1496
QgsWms::QgsWmsParameters::layerFontColorAsColor
QColor layerFontColorAsColor() const
Returns LAYERFONTCOLOR as a color or its defined value if not defined.
Definition: qgswmsparameters.cpp:1152