QGIS API Documentation 3.41.0-Master (02257426e5a)
Loading...
Searching...
No Matches
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
31namespace QgsWms
32{
47
49 {
50 QString mNickname; // name, id or short name
51 int mOpacity = -1;
52 QList<QgsWmsParametersFilter> mFilter; // list of filter
53 QStringList mSelection; // list of string fid
54 QString mStyle;
55 QString mExternalUri;
56 };
57
59 {
60 QString mName;
61 QString mUri;
62 };
63
65 {
66 QString mName;
68 QString mSld;
69 QString mLabel;
70 QColor mColor;
71 int mSize = 0;
72 int mWeight = 0;
73 QString mFont;
74 float mBufferSize = 0;
76 double mLabelRotation = 0;
77 double mLabelDistance = 2; //label distance from feature in mm
78 QString mHali; //horizontal alignment
79 QString mVali; //vertical alignment
80 };
81
83 {
84 int mId = 0; // composer map id
85 bool mHasExtent = false; // does the request contains extent for this composer map
86 QgsRectangle mExtent; // the request extent for this composer map
87 float mScale = -1;
88 float mRotation = 0;
89 float mGridX = 0;
90 float mGridY = 0;
91 QList<QgsWmsParametersLayer> mLayers; // list of layers for this composer map
92 QList<QgsWmsParametersHighlightLayer> mHighlightLayers; // list of highlight layers for this composer map
93 };
94
102 {
103 Q_GADGET
104
105 public:
193 Q_ENUM( Name )
194
195
201 QgsWmsParameter( const QgsWmsParameter::Name name = QgsWmsParameter::UNKNOWN, const QMetaType::Type type = QMetaType::Type::QString, const QVariant defaultValue = QVariant( "" ) );
202
206 virtual ~QgsWmsParameter() override = default;
207
211 bool isValid() const override;
212
221 QStringList toStyleList( const char delimiter = ',', bool skipEmptyParts = false ) const;
222
230 QList<QgsGeometry> toGeomList( const char delimiter = ',', bool skipEmptyParts = true ) const;
231
239 QList<int> toIntList( const char delimiter = ',', bool skipEmptyParts = true ) const;
240
248 QList<double> toDoubleList( const char delimiter = ',', bool skipEmptyParts = true ) const;
249
257 QList<QColor> toColorList( const char delimiter = ',', bool skipEmptyParts = true ) const;
258
265
271 int toInt() const;
272
278 double toDouble() const;
279
285 QColor toColor() const;
286
293 QUrl toUrl() const;
294
301 QString loadUrl() const;
302
307 void raiseError() const;
308
313 QString name() const;
314
318 static QString name( const QgsWmsParameter::Name );
319
324 static QgsWmsParameter::Name name( const QString &name );
325
327
329 int mMapId = -1;
330 };
331
338 {
339 Q_GADGET
340
341 public:
356 Q_ENUM( Format )
357
358
370 Q_ENUM( DxfFormatOption )
371
389 Q_ENUM( PdfFormatOption )
390
391
395 QgsWmsParameters( const QgsServerParameters &parameters );
396
401
402 virtual ~QgsWmsParameters() override = default;
403
409
414 void set( QgsWmsParameter::Name name, const QVariant &value );
415
419 void dump() const;
420
425 QString crs() const;
426
431 QString width() const;
432
440 int widthAsInt() const;
441
446 QString height() const;
447
455 int heightAsInt() const;
456
462 bool showRuleDetailsAsBool() const;
463
469 QString srcWidth() const;
470
479 int srcWidthAsInt() const;
480
486 QString srcHeight() const;
487
496 int srcHeightAsInt() const;
497
503
508 bool versionIsValid( const QString version ) const;
509
514 QString bbox() const;
515
523
528 QString sldBody() const;
529
534 QStringList selections() const;
535
540 QStringList filters() const;
541
546 QString filterGeom() const;
547
552 QStringList opacities() const;
553
561 QList<int> opacitiesAsInt() const;
562
567 QStringList allLayersNickname() const;
568
573 QStringList queryLayersNickname() const;
574
579 QStringList allStyles() const;
580
585 QList<QgsWmsParametersLayer> layersParameters() const;
586
592 QString polygonTolerance() const;
593
599 QString lineTolerance() const;
600
606 QString pointTolerance() const;
607
613 int polygonToleranceAsInt() const;
614
620 int lineToleranceAsInt() const;
621
627 int pointToleranceAsInt() const;
628
633 QString formatAsString() const;
634
639 static QString formatAsString( Format format );
640
646 Format format() const;
647
652 QString infoFormatAsString() const;
653
658 bool infoFormatIsImage() const;
659
665 QString imageQuality() const;
666
672 int imageQualityAsInt() const;
673
679 QString tiled() const;
680
686 bool tiledAsBool() const;
687
691 bool addLayerGroups() const;
692
698 Format infoFormat() const;
699
705 int infoFormatVersion() const;
706
711 QString i() const;
712
720 int iAsInt() const;
721
726 QString j() const;
727
735 int jAsInt() const;
736
741 QString x() const;
742
750 int xAsInt() const;
751
756 QString y() const;
757
765 int yAsInt() const;
766
771 QString rule() const;
772
777 QString ruleLabel() const;
778
785 bool ruleLabelAsBool() const;
786
791 QString showFeatureCount() const;
792
799 bool showFeatureCountAsBool() const;
800
805 QString featureCount() const;
806
813 int featureCountAsInt() const;
814
819 QString scale() const;
820
827 double scaleAsDouble() const;
828
833 QString boxSpace() const;
834
841 double boxSpaceAsDouble() const;
842
847 QString layerSpace() const;
848
855 double layerSpaceAsDouble() const;
856
861 QString layerTitleSpace() const;
862
869 double layerTitleSpaceAsDouble() const;
870
875 QString symbolSpace() const;
876
883 double symbolSpaceAsDouble() const;
884
889 QString iconLabelSpace() const;
890
897 double iconLabelSpaceAsDouble() const;
898
903 QString symbolWidth() const;
904
911 double symbolWidthAsDouble() const;
912
917 QString symbolHeight() const;
918
925 double symbolHeightAsDouble() const;
926
932 QFont layerFont() const;
933
938 QString layerFontFamily() const;
939
944 QString layerFontBold() const;
945
952 bool layerFontBoldAsBool() const;
953
958 QString layerFontItalic() const;
959
966 bool layerFontItalicAsBool() const;
967
972 QString layerFontSize() const;
973
980 double layerFontSizeAsDouble() const;
981
986 QString layerFontColor() const;
987
994 QColor layerFontColorAsColor() const;
995
1001 QFont itemFont() const;
1002
1007 QString itemFontFamily() const;
1008
1013 QString itemFontBold() const;
1014
1021 bool itemFontBoldAsBool() const;
1022
1027 QString itemFontItalic() const;
1028
1035 bool itemFontItalicAsBool() const;
1036
1041 QString itemFontSize() const;
1042
1049 double itemFontSizeAsDouble() const;
1050
1055 QString itemFontColor() const;
1056
1063 QColor itemFontColorAsColor() const;
1064
1069 QString layerTitle() const;
1070
1077 bool layerTitleAsBool() const;
1078
1084
1089 QList<QgsWmsParametersHighlightLayer> highlightLayersParameters() const;
1090
1095 QList<QgsWmsParametersExternalLayer> externalLayersParameters() const;
1096
1101 QStringList highlightGeom() const;
1102
1109 QList<QgsGeometry> highlightGeomAsGeom() const;
1110
1115 QStringList highlightSymbol() const;
1116
1121 QStringList highlightLabelString() const;
1122
1127 QStringList highlightLabelColor() const;
1128
1135 QList<QColor> highlightLabelColorAsColor() const;
1136
1141 QStringList highlightLabelSize() const;
1142
1149 QList<int> highlightLabelSizeAsInt() const;
1150
1155 QStringList highlightLabelWeight() const;
1156
1163 QList<int> highlightLabelWeightAsInt() const;
1164
1169 QStringList highlightLabelFont() const;
1170
1175 QStringList highlightLabelBufferSize() const;
1176
1183 QList<double> highlightLabelBufferSizeAsFloat() const;
1184
1189 QStringList highlightLabelBufferColor() const;
1190
1197 QList<QColor> highlightLabelBufferColorAsColor() const;
1198
1203 QList<double> highlightLabelRotation() const;
1204
1209 QList<double> highlightLabelDistance() const;
1210
1215 QStringList highlightLabelHorizontalAlignment() const;
1216
1221 QStringList highlightLabelVerticalAlignment() const;
1222
1227 QString wmsPrecision() const;
1228
1236 int wmsPrecisionAsInt() const;
1237
1242 QString transparent() const;
1243
1251 bool transparentAsBool() const;
1252
1257 QString backgroundColor() const;
1258
1266 QColor backgroundColorAsColor() const;
1267
1272 QString dpi() const;
1273
1281 double dpiAsDouble() const;
1282
1287 QString composerTemplate() const;
1288
1299
1305 QString externalWMSUri( const QString &id ) const;
1306
1311 bool withGeometry() const;
1312
1318 QString withMapTipAsString() const;
1319
1324 bool withMapTip() const;
1325
1332 bool htmlInfoOnlyMapTip() const;
1333
1339 bool withDisplayName() const;
1340
1345 QString wmtver() const;
1346
1354 QString layoutParameter( const QString &id, bool &ok ) const;
1355
1361 QStringList atlasPk() const;
1362
1367 QStringList dxfLayerAttributes() const;
1368
1373 bool dxfUseLayerTitleAsName() const;
1374
1379 double dxfScale() const;
1380
1386
1391 QString dxfCodec() const;
1392
1397 QMap<QString, QString> dimensionValues() const;
1398
1405 bool noMText() const;
1406
1413 bool isForce2D() const;
1414
1420 bool exportLinesWithZeroWidth() const;
1421
1426 bool writeGeospatialPdf() const;
1427
1432 bool pdfForceVectorOutput() const;
1433
1438 bool pdfAppendGeoreference() const;
1439
1444 bool pdfSimplifyGeometries() const;
1445
1450 bool pdfExportMetadata() const;
1451
1457
1462 bool pdfLosslessImageCompression() const;
1463
1468 bool pdfDisableTiledRasterRendering() const;
1469
1475
1482
1487 QStringList pdfExportMapThemes() const;
1488
1493 QVector<qreal> pdfPredefinedMapScales() const;
1494
1495 QString version() const override;
1496
1497 QString request() const override;
1498
1504 template<typename T> QMap<T, QString> formatOptions() const
1505 {
1506 QMap<T, QString> options;
1507 const QMetaEnum metaEnum( QMetaEnum::fromType<T>() );
1508 const QStringList opts = mWmsParameters.value( QgsWmsParameter::FORMAT_OPTIONS ).toStringList( ';' );
1509
1510 for ( auto it = opts.constBegin(); it != opts.constEnd(); ++it )
1511 {
1512 const int equalIdx = it->indexOf( ':' );
1513 if ( equalIdx > 0 && equalIdx < ( it->length() - 1 ) )
1514 {
1515 const QString name = it->left( equalIdx ).toUpper();
1516 int metaEnumVal = metaEnum.keyToValue( name.toStdString().c_str() );
1517 if ( metaEnumVal < 0 )
1518 {
1519 continue; //option for a different format
1520 }
1521 const T option = ( T ) metaEnumVal;
1522 const QString value = it->right( it->length() - equalIdx - 1 );
1523 options.insert( option, value );
1524 }
1525 }
1526 return options;
1527 }
1528
1529 private:
1530 static bool isExternalLayer( const QString &name );
1531
1532 bool loadParameter( const QString &name, const QString &value ) override;
1533
1534 void save( const QgsWmsParameter &parameter, bool multi = false );
1535
1536 QgsWmsParameter idParameter( QgsWmsParameter::Name name, int id ) const;
1537
1538 void raiseError( const QString &msg ) const;
1539 void log( const QString &msg, const char *file = __builtin_FILE(), const char *function = __builtin_FUNCTION(), int line = __builtin_LINE() ) const;
1540
1541 QgsWmsParametersExternalLayer externalLayerParameter( const QString &name ) const;
1542
1543 QMultiMap<QString, QgsWmsParametersFilter> layerFilters( const QStringList &layers ) const;
1544
1545
1546 QMultiMap<QgsWmsParameter::Name, QgsWmsParameter> mWmsParameters;
1547 QMap<QString, QMap<QString, QString>> mExternalWMSParameters;
1548 QList<QgsProjectVersion> mVersions;
1549 };
1550} // namespace QgsWms
1551
1552#endif
TextRenderFormat
Options for rendering text.
Definition qgis.h:2687
FeatureSymbologyExport
Options for exporting features considering their symbology.
Definition qgis.h:5218
A geometry is the spatial representation of a feature.
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
FilterVersion
OGC filter version.
A class to describe the version of a project.
A rectangle specified with double values.
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< QgsGeometry > toGeomList(const char delimiter=',', bool skipEmptyParts=true) const
Converts the parameter into a list of geometries.
double toDouble() const
Converts the parameter into a double.
void raiseError() const
Raises an error in case of an invalid conversion.
QList< double > toDoubleList(const char delimiter=',', bool skipEmptyParts=true) const
Converts the parameter into a list of doubles.
QStringList toStyleList(const char delimiter=',', bool skipEmptyParts=false) const
Converts the parameter into a list of strings and keeps empty parts Default style value is an empty s...
virtual ~QgsWmsParameter() override=default
Default destructor for QgsWmsParameter.
Name
Available parameters for WMS requests.
QUrl toUrl() const
Converts the parameter into an url.
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.
QList< int > toIntList(const char delimiter=',', bool skipEmptyParts=true) const
Converts the parameter into a list of integers.
QColor toColor() const
Converts the parameter into a color.
QgsWmsParameter::Name mName
QList< QColor > toColorList(const char delimiter=',', bool skipEmptyParts=true) const
Converts the parameter into a list of colors.
int mMapId
Map id for prefixed parameters (e.g. "0" for "map0:LAYERS" in GetPrint requests)
QString loadUrl() const
Loads the data associated to the parameter converted into an url.
Provides an interface to retrieve and manipulate WMS parameters received from the client.
bool htmlInfoOnlyMapTip() const
Returns true if only maptip information is requested for HTML feature info response.
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.
QStringList highlightLabelBufferSize() const
Returns HIGHLIGHT_LABELBUFFERSIZE.
QStringList allLayersNickname() const
Returns nickname of layers found in LAYER and LAYERS parameters.
virtual ~QgsWmsParameters() override=default
QString formatAsString() const
Returns FORMAT parameter as a string.
double layerFontSizeAsDouble() const
Returns LAYERFONTSIZE as a double.
QString externalWMSUri(const QString &id) const
Returns the external WMS uri.
QgsProjectVersion versionAsNumber() const
Returns VERSION parameter if defined or its default value.
QString scale() const
Returns SCALE parameter or an empty string if none is defined.
QString ruleLabel() const
Returns RULELABEL parameter or an empty string if none is defined.
double scaleAsDouble() const
Returns SCALE as a double.
bool layerFontItalicAsBool() const
Returns LAYERFONTITALIC as a boolean or its default value if not defined.
QgsWmsParametersComposerMap composerMapParameters(int mapId) const
Returns the requested parameters for a composer map parameter.
QgsRectangle bboxAsRectangle() const
Returns BBOX as a rectangle if defined and valid.
bool withGeometry() const
Returns if the client wants the feature info response with geometry information.
QStringList highlightLabelString() const
Returns HIGHLIGHT_LABELSTRING as a list of string.
QString tiled() const
Returns TILED parameter or an empty string if not defined.
QString layerFontSize() const
Returns LAYERFONTSIZE parameter or an empty string if not defined.
DxfFormatOption
Options for DXF format.
QList< QColor > highlightLabelColorAsColor() const
Returns HIGHLIGHT_LABELCOLOR as a list of color.
bool itemFontBoldAsBool() const
Returns ITEMFONTBOLD as a boolean or its default value if not defined.
QStringList highlightLabelHorizontalAlignment() const
Returns HIGHLIGHT_LABEL_HORIZONTAL_ALIGNMENT as a list of string.
void set(QgsWmsParameter::Name name, const QVariant &value)
Sets a parameter value thanks to its name.
QString pointTolerance() const
Returns FI_POINT_TOLERANCE parameter or an empty string if not defined.
QString filterGeom() const
Returns the filter geometry found in FILTER_GEOM parameter.
QString composerTemplate() const
Returns TEMPLATE parameter or an empty string if not defined.
Format infoFormat() const
Returns infoFormat.
QString dxfCodec() const
Returns the DXF CODEC parameter.
QString y() const
Returns Y parameter or an empty string if not defined.
QString srcHeight() const
Returns SRCHEIGHT parameter or an empty string if not defined.
double dpiAsDouble() const
Returns DPI parameter as an int or its default value if not defined.
QStringList highlightLabelVerticalAlignment() const
Returns HIGHLIGHT_LABEL_VERTICAL_ALIGNMENT as a list of string.
void dump() const
Dumps parameters.
int pointToleranceAsInt() const
Returns FI_POINT_TOLERANCE parameter as an integer.
bool withMapTip() const
withMapTip
QString polygonTolerance() const
Returns FI_POLYGON_TOLERANCE parameter or an empty string if not defined.
QStringList highlightGeom() const
Returns HIGHLIGHT_GEOM as a list of string in WKT.
QString i() const
Returns I parameter or an empty string if not defined.
bool pdfLosslessImageCompression() const
Returns true if images embedded in pdf must be compressed using a lossless algorithm.
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 pdfExportMapThemes() const
Returns map themes for geospatial PDF export.
bool pdfUseOgcBestPracticeFormatGeoreferencing() const
Returns true if OGC best practice georeferencing shall be used.
QStringList highlightLabelColor() const
Returns HIGHLIGHT_LABELCOLOR as a list of string.
bool pdfExportMetadata() const
Returns true if metadata shall be added to the pdf.
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.
QString withMapTipAsString() const
withMapTipAsString
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.
bool pdfAppendGeoreference() const
Returns true if georeference info shall be added to the pdf.
int polygonToleranceAsInt() const
Returns FI_POLYGON_TOLERANCE parameter as an integer.
bool ruleLabelAsBool() const
Returns RULELABEL as a bool.
QList< double > highlightLabelDistance() const
Returns HIGHLIGHT_LABEL_DISTANCE as a list of double.
QList< int > highlightLabelSizeAsInt() const
Returns HIGHLIGHT_LABELSIZE as a list of int An exception is raised if an invalid size is found.
int widthAsInt() const
Returns WIDTH parameter as an int or its default value if not defined.
QString sldBody() const
Returns SLD_body if defined or an empty string.
bool itemFontItalicAsBool() const
Returns ITEMFONTITALIC as a boolean or its default value if not defined.
bool pdfDisableTiledRasterRendering() const
Returns true if rasters shall be untiled in the pdf.
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.
bool pdfForceVectorOutput() const
Returns if pdf should be exported as vector.
bool writeGeospatialPdf() const
Returns if a geospatial PDF shall be exported.
bool pdfUseIso32000ExtensionFormatGeoreferencing() const
Returns true, if Iso32000 georeferencing shall be used.
QMap< QString, QString > dimensionValues() const
Returns the dimensions parameter.
QList< QgsWmsParametersExternalLayer > externalLayersParameters() const
Returns parameters for each external layer.
bool withDisplayName() const
withDisplayName
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.
Qgis::TextRenderFormat pdfTextRenderFormat() const
Returns text render format for pdf export.
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.
Qgis::FeatureSymbologyExport dxfMode() const
Returns the DXF MODE parameter.
QStringList highlightLabelSize() const
Returns HIGHLIGHT_LABELSIZE as a list of string.
QString imageQuality() const
Returns IMAGE_QUALITY parameter or an empty string if not defined.
QList< double > highlightLabelRotation() const
Returns HIGHLIGHT_LABEL_ROTATION as a list of double.
QString height() const
Returns HEIGHT parameter or an empty string if not defined.
QString crs() const
Returns CRS or an empty string if none is defined.
bool showRuleDetailsAsBool() const
Returns SHOWRULEDETAILS as a bool.
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.
QMap< T, QString > formatOptions() const
Returns the format options for an output format.
QString itemFontColor() const
Returns ITEMFONTCOLOR parameter or an empty string if not defined.
double boxSpaceAsDouble() const
Returns BOXSPACE as a double or its default value if not defined.
bool addLayerGroups() const
Returns true if layer groups shall be added to GetLegendGraphic results.
QString symbolWidth() const
Returns SYMBOLWIDTH parameter or an empty string if not defined.
bool tiledAsBool() const
Returns TILED parameter as a boolean.
Format
Output format for the response.
QString width() const
Returns WIDTH parameter or an empty string if not defined.
QFont itemFont() const
Returns the item font (built thanks to the ITEMFONTFAMILY, ITEMFONTSIZE, ITEMFONTBOLD,...
QStringList opacities() const
Returns the list of opacities found in OPACITIES parameter.
QString version() const override
Returns VERSION parameter as a string or an empty string if not defined.
QString layerFontItalic() const
Returns LAYERFONTITALIC parameter or an empty string if not defined.
QString itemFontItalic() const
Returns ITEMFONTITALIC parameter or an empty string if not defined.
QStringList filters() const
Returns the list of filters found in FILTER parameter.
QString dpi() const
Returns DPI parameter or an empty string if not defined.
QString itemFontFamily() const
Returns ITEMFONTFAMILY parameter or an empty string if not defined.
int jAsInt() const
Returns J parameter as an int or its default value if not defined.
QVector< qreal > pdfPredefinedMapScales() const
Returns list of map scales.
QString showFeatureCount() const
Returns SHOWFEATURECOUNT parameter or an empty string if none is defined.
bool pdfSimplifyGeometries() const
Returns if geometries shall to be simplified.
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