QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 {
34  struct QgsWmsParametersFilter
35  {
37  enum Type
38  {
39  UNKNOWN,
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 
59  struct QgsWmsParametersExternalLayer
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  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  {
110  UNKNOWN,
111  BOXSPACE,
112  CRS,
113  SRS,
114  WIDTH,
116  BBOX,
120  ITEMFONTBOLD,
122  ITEMFONTSIZE,
152  I,
153  J,
154  X,
155  Y,
190  };
191  Q_ENUM( Name )
192 
193 
200  const QVariant::Type type = QVariant::String,
201  const QVariant defaultValue = QVariant( "" ) );
202 
206  virtual ~QgsWmsParameter() override = default;
207 
211  bool isValid() const override;
212 
220  QStringList toStyleList( const char delimiter = ',' ) const;
221 
228  QList<QgsGeometry> toGeomList( const char delimiter = ',' ) const;
229 
236  QList<int> toIntList( const char delimiter = ',' ) const;
237 
244  QList<double> toDoubleList( const char delimiter = ',' ) const;
245 
252  QList<QColor> toColorList( const char delimiter = ',' ) const;
253 
259  QgsRectangle toRectangle() const;
260 
266  int toInt() const;
267 
273  double toDouble() const;
274 
280  QColor toColor() const;
281 
288  QUrl toUrl() const;
289 
296  QString loadUrl() const;
297 
302  void raiseError() const;
303 
308  QString name() const;
309 
313  static QString name( const QgsWmsParameter::Name );
314 
319  static QgsWmsParameter::Name name( const QString &name );
320 
322 
324  int mMapId = -1;
325  };
326 
334  {
335  Q_GADGET
336 
337  public:
338 
340  enum Format
341  {
342  NONE,
343  JPG,
344  PNG,
345  SVG,
346  PDF,
347  TEXT,
348  XML,
349  HTML,
350  GML,
351  JSON
352  };
353  Q_ENUM( Format )
354 
355 
357  {
359  MODE,
360  LAYERATTRIBUTES,
361  USE_TITLE_AS_LAYERNAME,
362  CODEC,
363  NO_MTEXT,
364  FORCE_2D
365  };
366  Q_ENUM( DxfFormatOption )
367 
368 
372  QgsWmsParameters( const QgsServerParameters &parameters );
373 
378 
379  virtual ~QgsWmsParameters() override = default;
380 
385  QgsWmsParameter operator[]( QgsWmsParameter::Name name ) const;
386 
391  void set( QgsWmsParameter::Name name, const QVariant &value );
392 
396  void dump() const;
397 
402  QString crs() const;
403 
408  QString width() const;
409 
417  int widthAsInt() const;
418 
423  QString height() const;
424 
432  int heightAsInt() const;
433 
439  QString srcWidth() const;
440 
449  int srcWidthAsInt() const;
450 
456  QString srcHeight() const;
457 
466  int srcHeightAsInt() const;
467 
472  QgsProjectVersion versionAsNumber() const;
473 
478  bool versionIsValid( const QString version ) const;
479 
484  QString bbox() const;
485 
492  QgsRectangle bboxAsRectangle() const;
493 
498  QString sldBody() const;
499 
504  QStringList selections() const;
505 
510  QStringList filters() const;
511 
516  QString filterGeom() const;
517 
522  QStringList opacities() const;
523 
531  QList<int> opacitiesAsInt() const;
532 
537  QStringList allLayersNickname() const;
538 
543  QStringList queryLayersNickname() const;
544 
549  QStringList allStyles() const;
550 
555  QList<QgsWmsParametersLayer> layersParameters() const;
556 
562  QString polygonTolerance() const;
563 
569  QString lineTolerance() const;
570 
576  QString pointTolerance() const;
577 
583  int polygonToleranceAsInt() const;
584 
590  int lineToleranceAsInt() const;
591 
597  int pointToleranceAsInt() const;
598 
603  QString formatAsString() const;
604 
609  static QString formatAsString( Format format );
610 
616  Format format() const;
617 
622  QString infoFormatAsString() const;
623 
628  bool infoFormatIsImage() const;
629 
635  QString imageQuality() const;
636 
642  int imageQualityAsInt() const;
643 
649  QString tiled() const;
650 
656  bool tiledAsBool() const;
657 
663  Format infoFormat() const;
664 
670  int infoFormatVersion() const;
671 
676  QString i() const;
677 
685  int iAsInt() const;
686 
691  QString j() const;
692 
700  int jAsInt() const;
701 
706  QString x() const;
707 
715  int xAsInt() const;
716 
721  QString y() const;
722 
730  int yAsInt() const;
731 
736  QString rule() const;
737 
742  QString ruleLabel() const;
743 
750  bool ruleLabelAsBool() const;
751 
756  QString showFeatureCount() const;
757 
764  bool showFeatureCountAsBool() const;
765 
770  QString featureCount() const;
771 
778  int featureCountAsInt() const;
779 
784  QString scale() const;
785 
792  double scaleAsDouble() const;
793 
798  QString boxSpace() const;
799 
806  double boxSpaceAsDouble() const;
807 
812  QString layerSpace() const;
813 
820  double layerSpaceAsDouble() const;
821 
826  QString layerTitleSpace() const;
827 
834  double layerTitleSpaceAsDouble() const;
835 
840  QString symbolSpace() const;
841 
848  double symbolSpaceAsDouble() const;
849 
854  QString iconLabelSpace() const;
855 
862  double iconLabelSpaceAsDouble() const;
863 
868  QString symbolWidth() const;
869 
876  double symbolWidthAsDouble() const;
877 
882  QString symbolHeight() const;
883 
890  double symbolHeightAsDouble() const;
891 
897  QFont layerFont() const;
898 
903  QString layerFontFamily() const;
904 
909  QString layerFontBold() const;
910 
917  bool layerFontBoldAsBool() const;
918 
923  QString layerFontItalic() const;
924 
931  bool layerFontItalicAsBool() const;
932 
937  QString layerFontSize() const;
938 
945  double layerFontSizeAsDouble() const;
946 
951  QString layerFontColor() const;
952 
959  QColor layerFontColorAsColor() const;
960 
966  QFont itemFont() const;
967 
972  QString itemFontFamily() const;
973 
978  QString itemFontBold() const;
979 
986  bool itemFontBoldAsBool() const;
987 
992  QString itemFontItalic() const;
993 
1000  bool itemFontItalicAsBool() const;
1001 
1006  QString itemFontSize() const;
1007 
1014  double itemFontSizeAsDouble() const;
1015 
1020  QString itemFontColor() const;
1021 
1028  QColor itemFontColorAsColor() const;
1029 
1034  QString layerTitle() const;
1035 
1042  bool layerTitleAsBool() const;
1043 
1048  QgsLegendSettings legendSettings() const;
1049 
1054  QList<QgsWmsParametersHighlightLayer> highlightLayersParameters() const;
1055 
1060  QList<QgsWmsParametersExternalLayer> externalLayersParameters() const;
1061 
1066  QStringList highlightGeom() const;
1067 
1074  QList<QgsGeometry> highlightGeomAsGeom() const;
1075 
1080  QStringList highlightSymbol() const;
1081 
1086  QStringList highlightLabelString() const;
1087 
1092  QStringList highlightLabelColor() const;
1093 
1100  QList<QColor> highlightLabelColorAsColor() const;
1101 
1106  QStringList highlightLabelSize() const;
1107 
1114  QList<int> highlightLabelSizeAsInt() const;
1115 
1120  QStringList highlightLabelWeight() const;
1121 
1128  QList<int> highlightLabelWeightAsInt() const;
1129 
1134  QStringList highlightLabelFont() const;
1135 
1140  QStringList highlightLabelBufferSize() const;
1141 
1148  QList<double> highlightLabelBufferSizeAsFloat() const;
1149 
1154  QStringList highlightLabelBufferColor() const;
1155 
1162  QList<QColor> highlightLabelBufferColorAsColor() const;
1163 
1168  QList<double> highlightLabelRotation() const;
1169 
1174  QList<double> highlightLabelDistance() const;
1175 
1180  QStringList highlightLabelHorizontalAlignment() const;
1181 
1186  QStringList highlightLabelVerticalAlignment() const;
1187 
1192  QString wmsPrecision() const;
1193 
1201  int wmsPrecisionAsInt() const;
1202 
1207  QString transparent() const;
1208 
1216  bool transparentAsBool() const;
1217 
1222  QString backgroundColor() const;
1223 
1231  QColor backgroundColorAsColor() const;
1232 
1237  QString dpi() const;
1238 
1246  double dpiAsDouble() const;
1247 
1252  QString composerTemplate() const;
1253 
1263  QgsWmsParametersComposerMap composerMapParameters( int mapId ) const;
1264 
1270  QString externalWMSUri( const QString &id ) const;
1271 
1276  bool withGeometry() const;
1277 
1282  bool withMapTip() const;
1283 
1288  QString wmtver() const;
1289 
1297  QString layoutParameter( const QString &id, bool &ok ) const;
1298 
1304  QStringList atlasPk() const;
1305 
1310  QMap<DxfFormatOption, QString> dxfFormatOptions() const;
1311 
1316  QStringList dxfLayerAttributes() const;
1317 
1322  bool dxfUseLayerTitleAsName() const;
1323 
1328  double dxfScale() const;
1329 
1334  QgsDxfExport::SymbologyExport dxfMode() const;
1335 
1340  QString dxfCodec() const;
1341 
1346  QMap<QString, QString> dimensionValues() const;
1347 
1354  bool noMText() const;
1355 
1362  bool isForce2D() const;
1363 
1364  QString version() const override;
1365 
1366  QString request() const override;
1367 
1368  private:
1369  static bool isExternalLayer( const QString &name );
1370 
1371  bool loadParameter( const QString &name, const QString &value ) override;
1372 
1373  void save( const QgsWmsParameter &parameter, bool multi = false );
1374 
1375  QgsWmsParameter idParameter( QgsWmsParameter::Name name, int id ) const;
1376 
1377  void raiseError( const QString &msg ) const;
1378  void log( const QString &msg ) const;
1379 
1380  QgsWmsParametersExternalLayer externalLayerParameter( const QString &name ) const;
1381 
1382  QMultiMap<QString, QgsWmsParametersFilter> layerFilters( const QStringList &layers ) const;
1383 
1384 
1385  QMap<QgsWmsParameter::Name, QgsWmsParameter> mWmsParameters;
1386  QMap<QString, QMap<QString, QString> > mExternalWMSParameters;
1387  QList<QgsProjectVersion> mVersions;
1388  };
1389 }
1390 
1391 #endif
QgsWms::QgsWmsParameter::GRID_INTERVAL_X
@ GRID_INTERVAL_X
Definition: qgswmsparameters.h:193
QgsWms::QgsWmsParameter::LAYERFONTSIZE
@ LAYERFONTSIZE
Definition: qgswmsparameters.h:141
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:155
QgsWms::QgsWmsParameters
Provides an interface to retrieve and manipulate WMS parameters received from the client.
Definition: qgswmsparameters.h:346
QgsWms::QgsWmsParameter::mName
QgsWmsParameter::Name mName
Definition: qgswmsparameters.h:334
QgsWms::QgsWmsParameter::name
QString name() const
Returns the name of the parameter.
Definition: qgswmsparameters.cpp:194
QgsWms::QgsWmsParameter::SYMBOLHEIGHT
@ SYMBOLHEIGHT
Definition: qgswmsparameters.h:153
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELFONT
@ HIGHLIGHT_LABELFONT
Definition: qgswmsparameters.h:176
QgsWms::QgsWmsParameter::LAYERFONTCOLOR
@ LAYERFONTCOLOR
Definition: qgswmsparameters.h:142
QgsWms::QgsWmsParameter::QUERY_LAYERS
@ QUERY_LAYERS
Definition: qgswmsparameters.h:147
QgsWms::QgsWmsParameter::FEATURE_COUNT
@ FEATURE_COUNT
Definition: qgswmsparameters.h:148
QgsWms::QgsWmsParametersFilter::Type
Type
Filter type.
Definition: qgswmsparameters.h:63
QgsWms::QgsWmsParametersHighlightLayer::mLabel
QString mLabel
Definition: qgswmsparameters.h:83
QgsWms::QgsWmsParameter::EXTENT
@ EXTENT
Definition: qgswmsparameters.h:191
QgsWms::QgsWmsParameter::FORMAT_OPTIONS
@ FORMAT_OPTIONS
Definition: qgswmsparameters.h:199
QgsDxfExport
Exports QGIS layers to the DXF format.
Definition: qgsdxfexport.h:64
QgsWms::QgsWmsParametersHighlightLayer::mBufferColor
QColor mBufferColor
Definition: qgswmsparameters.h:89
QgsWms::QgsWmsParametersComposerMap
Definition: qgswmsparameters.h:96
QgsWms::QgsWmsParametersExternalLayer
Definition: qgswmsparameters.h:72
QgsWms::QgsWmsParameter::WITH_GEOMETRY
@ WITH_GEOMETRY
Definition: qgswmsparameters.h:195
QgsWms::QgsWmsParameter::toInt
int toInt() const
Converts the parameter into an integer.
Definition: qgswmsparameters.cpp:83
qgsrectangle.h
QgsWms::QgsWmsParameter::toIntList
QList< int > toIntList(const char delimiter=',') const
Converts the parameter into a list of integers.
Definition: qgswmsparameters.cpp:153
QgsWms::QgsWmsParametersFilter::OGC_FE
@ OGC_FE
Definition: qgswmsparameters.h:80
qgsserverparameters.h
QgsWms::QgsWmsParameter::LAYERFONTBOLD
@ LAYERFONTBOLD
Definition: qgswmsparameters.h:139
QgsWms::QgsWmsParameter::RULELABEL
@ RULELABEL
Definition: qgswmsparameters.h:170
QgsWms::QgsWmsParametersHighlightLayer::mSize
int mSize
Definition: qgswmsparameters.h:85
QgsWms::QgsWmsParametersComposerMap::mLayers
QList< QgsWmsParametersLayer > mLayers
Definition: qgswmsparameters.h:105
QgsWms::QgsWmsParametersComposerMap::mHighlightLayers
QList< QgsWmsParametersHighlightLayer > mHighlightLayers
Definition: qgswmsparameters.h:106
crs
const QgsCoordinateReferenceSystem & crs
Definition: qgswfsgetfeature.cpp:105
QgsWms::QgsWmsParameter::BOXSPACE
@ BOXSPACE
Definition: qgswmsparameters.h:124
QgsWms::QgsWmsParameters::Format
Format
Output format for the response.
Definition: qgswmsparameters.h:353
QgsWms::QgsWmsParametersExternalLayer::mName
QString mName
Definition: qgswmsparameters.h:74
QgsWms::QgsWmsParametersHighlightLayer::mWeight
int mWeight
Definition: qgswmsparameters.h:86
QgsWms::QgsWmsParameter::Y
@ Y
Definition: qgswmsparameters.h:168
QgsWms::QgsWmsParameter::mMapId
int mMapId
Map id for prefixed parameters (e.g. "0" for "map0:LAYERS" in GetPrint requests)
Definition: qgswmsparameters.h:337
QgsWms::QgsWmsParametersLayer::mExternalUri
QString mExternalUri
Definition: qgswmsparameters.h:69
QgsWms::QgsWmsParameter::STYLE
@ STYLE
Definition: qgswmsparameters.h:150
QgsWms::QgsWmsParameter::FI_LINE_TOLERANCE
@ FI_LINE_TOLERANCE
Definition: qgswmsparameters.h:159
QgsWms::QgsWmsParameter::ITEMFONTITALIC
@ ITEMFONTITALIC
Definition: qgswmsparameters.h:134
QgsWms::QgsWmsParameter::SHOWFEATURECOUNT
@ SHOWFEATURECOUNT
Definition: qgswmsparameters.h:149
QgsWms::QgsWmsParametersComposerMap::mScale
float mScale
Definition: qgswmsparameters.h:101
QgsWms::QgsWmsParametersLayer::mNickname
QString mNickname
Definition: qgswmsparameters.h:64
QgsWms::QgsWmsParameter::TRANSPARENT
@ TRANSPARENT
Definition: qgswmsparameters.h:187
QgsWms::QgsWmsParametersComposerMap::mRotation
float mRotation
Definition: qgswmsparameters.h:102
QgsWms::QgsWmsParametersHighlightLayer::mHali
QString mHali
Definition: qgswmsparameters.h:92
QgsWms::QgsWmsParameter::WIDTH
@ WIDTH
Definition: qgswmsparameters.h:127
QgsWms::QgsWmsParameter::INFO_FORMAT
@ INFO_FORMAT
Definition: qgswmsparameters.h:164
QgsWms::QgsWmsParameter::GRID_INTERVAL_Y
@ GRID_INTERVAL_Y
Definition: qgswmsparameters.h:194
QgsWms::QgsWmsParametersLayer::mStyle
QString mStyle
Definition: qgswmsparameters.h:68
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:103
QgsWms::QgsWmsParametersLayer
Definition: qgswmsparameters.h:62
QgsRectangle
A rectangle specified with double values.
Definition: qgsrectangle.h:41
QgsWms::QgsWmsParameter::UNKNOWN
@ UNKNOWN
Definition: qgswmsparameters.h:123
QgsWms::QgsWmsParametersHighlightLayer::mFont
QString mFont
Definition: qgswmsparameters.h:87
qgsogcutils.h
QgsWms::QgsWmsParametersFilter
Definition: qgswmsparameters.h:47
QgsWms::QgsWmsParameter::I
@ I
Definition: qgswmsparameters.h:165
QgsWms::QgsWmsParametersHighlightLayer::mName
QString mName
Definition: qgswmsparameters.h:80
QgsWms::QgsWmsParameter::LAYERFONTFAMILY
@ LAYERFONTFAMILY
Definition: qgswmsparameters.h:138
QgsWms::QgsWmsParameter::X
@ X
Definition: qgswmsparameters.h:167
QgsWms::QgsWmsParameter::LAYERSPACE
@ LAYERSPACE
Definition: qgswmsparameters.h:145
QgsWms::QgsWmsParametersComposerMap::mId
int mId
Definition: qgswmsparameters.h:98
QgsWms::QgsWmsParameter::HIGHLIGHT_GEOM
@ HIGHLIGHT_GEOM
Definition: qgswmsparameters.h:173
QgsWms::QgsWmsParameter::SRS
@ SRS
Definition: qgswmsparameters.h:126
QgsWms::QgsWmsParameter::FI_POLYGON_TOLERANCE
@ FI_POLYGON_TOLERANCE
Definition: qgswmsparameters.h:158
QgsWms::QgsWmsParameter::FI_POINT_TOLERANCE
@ FI_POINT_TOLERANCE
Definition: qgswmsparameters.h:160
QgsWms::QgsWmsParameter::LAYER
@ LAYER
Definition: qgswmsparameters.h:137
QgsWms::QgsWmsParametersFilter::UNKNOWN
@ UNKNOWN
Definition: qgswmsparameters.h:78
QgsWms::QgsWmsParameter::IMAGE_QUALITY
@ IMAGE_QUALITY
Definition: qgswmsparameters.h:131
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELBUFFERCOLOR
@ HIGHLIGHT_LABELBUFFERCOLOR
Definition: qgswmsparameters.h:180
QgsWms::QgsWmsParametersComposerMap::mGridY
float mGridY
Definition: qgswmsparameters.h:104
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:174
QgsWms::QgsWmsParameter::HIGHLIGHT_LABEL_HORIZONTAL_ALIGNMENT
@ HIGHLIGHT_LABEL_HORIZONTAL_ALIGNMENT
Definition: qgswmsparameters.h:184
QgsWms::QgsWmsParameter::WMS_PRECISION
@ WMS_PRECISION
Definition: qgswmsparameters.h:186
QgsWms::QgsWmsParameter::LAYERTITLESPACE
@ LAYERTITLESPACE
Definition: qgswmsparameters.h:146
QgsWms::QgsWmsParametersFilter::SQL
@ SQL
Definition: qgswmsparameters.h:79
QgsServerParameterDefinition
Definition of a parameter with basic conversion methods.
Definition: qgsserverparameters.h:34
QgsWms::QgsWmsParametersFilter::mType
QgsWmsParametersFilter::Type mType
Definition: qgswmsparameters.h:71
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:133
qgslegendsettings.h
QgsWms::PNG
@ PNG
Definition: qgswmsutils.h:43
QgsWms::QgsWmsParametersHighlightLayer
Definition: qgswmsparameters.h:78
QgsWms::QgsWmsParametersComposerMap::mHasExtent
bool mHasExtent
Definition: qgswmsparameters.h:99
QgsWms::QgsWmsParametersHighlightLayer::mVali
QString mVali
Definition: qgswmsparameters.h:93
QgsWms::QgsWmsParametersComposerMap::mExtent
QgsRectangle mExtent
Definition: qgswmsparameters.h:100
QgsWms::QgsWmsParameter::toDouble
double toDouble() const
Converts the parameter into a double.
Definition: qgswmsparameters.cpp:181
QgsLegendSettings
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
Definition: qgslegendsettings.h:38
QgsWms::QgsWmsParameter::SCALE
@ SCALE
Definition: qgswmsparameters.h:171
QgsWms::QgsWmsParameter::SLD
@ SLD
Definition: qgswmsparameters.h:156
QgsWms::QgsWmsParametersLayer::mSelection
QStringList mSelection
Definition: qgswmsparameters.h:67
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELSTRING
@ HIGHLIGHT_LABELSTRING
Definition: qgswmsparameters.h:175
QgsWms::QgsWmsParameter::ROTATION
@ ROTATION
Definition: qgswmsparameters.h:192
QgsWms::QgsWmsParametersFilter::mVersion
QgsOgcUtils::FilterVersion mVersion
Definition: qgswmsparameters.h:72
QgsWms::QgsWmsParameter::toUrl
QUrl toUrl() const
Converts the parameter into an url.
Definition: qgswmsparameters.cpp:113
QgsWms::QgsWmsParametersHighlightLayer::mBufferSize
float mBufferSize
Definition: qgswmsparameters.h:88
QgsWms::QgsWmsParameter::TEMPLATE
@ TEMPLATE
Definition: qgswmsparameters.h:190
QgsWms::QgsWmsParametersFilter::mFilter
QString mFilter
Definition: qgswmsparameters.h:70
QgsWms::QgsWmsParameter::ATLAS_PK
@ ATLAS_PK
Definition: qgswmsparameters.h:198
QgsWms::QgsWmsParameter::BBOX
@ BBOX
Definition: qgswmsparameters.h:129
QgsWms::QgsWmsParameter::ITEMFONTFAMILY
@ ITEMFONTFAMILY
Definition: qgswmsparameters.h:132
QgsWms::QgsWmsParameter::ITEMFONTSIZE
@ ITEMFONTSIZE
Definition: qgswmsparameters.h:135
QgsWms::QgsWmsParameter::LAYERTITLE
@ LAYERTITLE
Definition: qgswmsparameters.h:143
QgsWms::QgsWmsParameter::FILTER_GEOM
@ FILTER_GEOM
Definition: qgswmsparameters.h:162
QgsOgcUtils::FilterVersion
FilterVersion
OGC filter version.
Definition: qgsogcutils.h:178
QgsWms::QgsWmsParameter::HIGHLIGHT_LABEL_ROTATION
@ HIGHLIGHT_LABEL_ROTATION
Definition: qgswmsparameters.h:182
QgsWms::QgsWmsParametersHighlightLayer::mGeom
QgsGeometry mGeom
Definition: qgswmsparameters.h:81
QgsWms
Median cut implementation.
Definition: qgsdxfwriter.cpp:22
QgsWms::QgsWmsParametersHighlightLayer::mLabelRotation
double mLabelRotation
Definition: qgswmsparameters.h:90
QgsWms::QgsWmsParameter::BGCOLOR
@ BGCOLOR
Definition: qgswmsparameters.h:188
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:202
QgsWms::QgsWmsParameter::LAYERS
@ LAYERS
Definition: qgswmsparameters.h:144
QgsWms::QgsWmsParameter::J
@ J
Definition: qgswmsparameters.h:166
QgsWms::QgsWmsParametersHighlightLayer::mLabelDistance
double mLabelDistance
Definition: qgswmsparameters.h:91
QgsGeometry
A geometry is the spatial representation of a feature.
Definition: qgsgeometry.h:124
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELSIZE
@ HIGHLIGHT_LABELSIZE
Definition: qgswmsparameters.h:177
QgsWms::QgsWmsParameter::WITH_MAPTIP
@ WITH_MAPTIP
Definition: qgswmsparameters.h:196
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELWEIGHT
@ HIGHLIGHT_LABELWEIGHT
Definition: qgswmsparameters.h:178
QgsWms::QgsWmsParameter::isValid
bool isValid() const override
Returns true if the parameter is valid, false otherwise.
Definition: qgswmsparameters.cpp:39
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELBUFFERSIZE
@ HIGHLIGHT_LABELBUFFERSIZE
Definition: qgswmsparameters.h:181
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::QgsWmsParameter::FORMAT
@ FORMAT
Definition: qgswmsparameters.h:163
QgsWms::QgsWmsParameter::SLD_BODY
@ SLD_BODY
Definition: qgswmsparameters.h:157
QgsWms::QgsWmsParameter::WMTVER
@ WMTVER
Definition: qgswmsparameters.h:197
QgsWms::QgsWmsParameter::SYMBOLWIDTH
@ SYMBOLWIDTH
Definition: qgswmsparameters.h:154
QgsWms::QgsWmsParameter::SRCHEIGHT
@ SRCHEIGHT
Definition: qgswmsparameters.h:201
QgsWms::QgsWmsParameter
WMS parameter received from the client.
Definition: qgswmsparameters.h:115
QgsWms::QgsWmsParametersHighlightLayer::mSld
QString mSld
Definition: qgswmsparameters.h:82
QgsWms::QgsWmsParameter::HIGHLIGHT_LABEL_DISTANCE
@ HIGHLIGHT_LABEL_DISTANCE
Definition: qgswmsparameters.h:183
qgsdxfexport.h
QgsWms::QgsWmsParameter::DPI
@ DPI
Definition: qgswmsparameters.h:189
QgsWms::QgsWmsParameter::SRCWIDTH
@ SRCWIDTH
Definition: qgswmsparameters.h:200
QgsServerParameters
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from ...
Definition: qgsserverparameters.h:242
QgsWms::QgsWmsParametersHighlightLayer::mColor
QColor mColor
Definition: qgswmsparameters.h:84
QgsWms::QgsWmsParameter::toColorList
QList< QColor > toColorList(const char delimiter=',') const
Converts the parameter into a list of colors.
Definition: qgswmsparameters.cpp:139
QgsWms::QgsWmsParameter::SYMBOLSPACE
@ SYMBOLSPACE
Definition: qgswmsparameters.h:152
QgsWms::QgsWmsParameter::HEIGHT
@ HEIGHT
Definition: qgswmsparameters.h:128
QgsWms::QgsWmsParameter::ICONLABELSPACE
@ ICONLABELSPACE
Definition: qgswmsparameters.h:130
QgsWms::QgsWmsParameter::RULE
@ RULE
Definition: qgswmsparameters.h:169
qgsprojectversion.h
QgsWms::QgsWmsParametersLayer::mOpacity
int mOpacity
Definition: qgswmsparameters.h:65
QgsWms::QgsWmsParameter::ITEMFONTCOLOR
@ ITEMFONTCOLOR
Definition: qgswmsparameters.h:136
QgsWms::QgsWmsParameter::HIGHLIGHT_LABELCOLOR
@ HIGHLIGHT_LABELCOLOR
Definition: qgswmsparameters.h:179
QgsWms::QgsWmsParameter::CRS
@ CRS
Definition: qgswmsparameters.h:125
QgsWms::QgsWmsParameter::Name
Name
Available parameters for WMS requests.
Definition: qgswmsparameters.h:121
QgsWms::QgsWmsParameter::HIGHLIGHT_LABEL_VERTICAL_ALIGNMENT
@ HIGHLIGHT_LABEL_VERTICAL_ALIGNMENT
Definition: qgswmsparameters.h:185
QgsWms::QgsWmsParameters::DxfFormatOption
DxfFormatOption
Options for DXF format.
Definition: qgswmsparameters.h:369
QgsWms::QgsWmsParameter::FILTER
@ FILTER
Definition: qgswmsparameters.h:161
QgsWms::QgsWmsParameter::STYLES
@ STYLES
Definition: qgswmsparameters.h:151
QgsProjectVersion
A class to describe the version of a project.
Definition: qgsprojectversion.h:32
QgsWms::QgsWmsParametersExternalLayer::mUri
QString mUri
Definition: qgswmsparameters.h:75
QgsWms::QgsWmsParametersLayer::mFilter
QList< QgsWmsParametersFilter > mFilter
Definition: qgswmsparameters.h:66
QgsOgcUtils::FILTER_OGC_1_0
@ FILTER_OGC_1_0
Definition: qgsogcutils.h:180
QgsWms::QgsWmsParameter::SELECTION
@ SELECTION
Definition: qgswmsparameters.h:172
QgsWms::QgsWmsParameter::LAYERFONTITALIC
@ LAYERFONTITALIC
Definition: qgswmsparameters.h:140