18 #ifndef QGSWMSPARAMETERS_H 19 #define QGSWMSPARAMETERS_H 74 float mBufferSize = 0;
81 bool mHasExtent =
false;
192 const QVariant::Type type = QVariant::String,
193 const QVariant defaultValue = QVariant(
"" ) );
203 bool isValid()
const override;
212 QStringList toStyleList(
const char delimiter =
',' )
const;
220 QList<QgsGeometry> toGeomList(
const char delimiter =
',' )
const;
228 QList<int> toIntList(
const char delimiter =
',' )
const;
236 QList<double> toDoubleList(
const char delimiter =
',' )
const;
244 QList<QColor> toColorList(
const char delimiter =
',' )
const;
265 double toDouble()
const;
272 QColor toColor()
const;
288 QString loadUrl()
const;
294 void raiseError()
const;
300 QString name()
const;
396 QString width()
const;
405 int widthAsInt()
const;
411 QString height()
const;
420 int heightAsInt()
const;
427 QString srcWidth()
const;
437 int srcWidthAsInt()
const;
444 QString srcHeight()
const;
454 int srcHeightAsInt()
const;
466 bool versionIsValid(
const QString version )
const;
472 QString bbox()
const;
486 QString sldBody()
const;
492 QStringList selections()
const;
498 QStringList filters()
const;
504 QString filterGeom()
const;
510 QStringList opacities()
const;
519 QList<int> opacitiesAsInt()
const;
525 QStringList allLayersNickname()
const;
531 QStringList queryLayersNickname()
const;
537 QStringList allStyles()
const;
543 QList<QgsWmsParametersLayer> layersParameters()
const;
550 QString polygonTolerance()
const;
557 QString lineTolerance()
const;
564 QString pointTolerance()
const;
571 int polygonToleranceAsInt()
const;
578 int lineToleranceAsInt()
const;
585 int pointToleranceAsInt()
const;
591 QString formatAsString()
const;
597 static QString formatAsString(
Format format );
610 QString infoFormatAsString()
const;
616 bool infoFormatIsImage()
const;
623 QString imageQuality()
const;
630 int imageQualityAsInt()
const;
637 QString tiled()
const;
644 bool tiledAsBool()
const;
651 Format infoFormat()
const;
658 int infoFormatVersion()
const;
724 QString rule()
const;
730 QString ruleLabel()
const;
738 bool ruleLabelAsBool()
const;
744 QString showFeatureCount()
const;
752 bool showFeatureCountAsBool()
const;
758 QString featureCount()
const;
766 int featureCountAsInt()
const;
772 QString scale()
const;
780 double scaleAsDouble()
const;
786 QString boxSpace()
const;
794 double boxSpaceAsDouble()
const;
800 QString layerSpace()
const;
808 double layerSpaceAsDouble()
const;
814 QString layerTitleSpace()
const;
822 double layerTitleSpaceAsDouble()
const;
828 QString symbolSpace()
const;
836 double symbolSpaceAsDouble()
const;
842 QString iconLabelSpace()
const;
850 double iconLabelSpaceAsDouble()
const;
856 QString symbolWidth()
const;
864 double symbolWidthAsDouble()
const;
870 QString symbolHeight()
const;
878 double symbolHeightAsDouble()
const;
885 QFont layerFont()
const;
891 QString layerFontFamily()
const;
897 QString layerFontBold()
const;
905 bool layerFontBoldAsBool()
const;
911 QString layerFontItalic()
const;
919 bool layerFontItalicAsBool()
const;
925 QString layerFontSize()
const;
933 double layerFontSizeAsDouble()
const;
939 QString layerFontColor()
const;
947 QColor layerFontColorAsColor()
const;
954 QFont itemFont()
const;
960 QString itemFontFamily()
const;
966 QString itemFontBold()
const;
974 bool itemFontBoldAsBool()
const;
980 QString itemFontItalic()
const;
988 bool itemFontItalicAsBool()
const;
994 QString itemFontSize()
const;
1002 double itemFontSizeAsDouble()
const;
1008 QString itemFontColor()
const;
1016 QColor itemFontColorAsColor()
const;
1022 QString layerTitle()
const;
1030 bool layerTitleAsBool()
const;
1042 QList<QgsWmsParametersHighlightLayer> highlightLayersParameters()
const;
1048 QList<QgsWmsParametersExternalLayer> externalLayersParameters()
const;
1054 QStringList highlightGeom()
const;
1062 QList<QgsGeometry> highlightGeomAsGeom()
const;
1068 QStringList highlightSymbol()
const;
1074 QStringList highlightLabelString()
const;
1080 QStringList highlightLabelColor()
const;
1088 QList<QColor> highlightLabelColorAsColor()
const;
1094 QStringList highlightLabelSize()
const;
1102 QList<int> highlightLabelSizeAsInt()
const;
1108 QStringList highlightLabelWeight()
const;
1116 QList<int> highlightLabelWeightAsInt()
const;
1122 QStringList highlightLabelFont()
const;
1128 QStringList highlightLabelBufferSize()
const;
1136 QList<double> highlightLabelBufferSizeAsFloat()
const;
1142 QStringList highlightLabelBufferColor()
const;
1150 QList<QColor> highlightLabelBufferColorAsColor()
const;
1156 QString wmsPrecision()
const;
1165 int wmsPrecisionAsInt()
const;
1171 QString transparent()
const;
1180 bool transparentAsBool()
const;
1186 QString backgroundColor()
const;
1195 QColor backgroundColorAsColor()
const;
1201 QString dpi()
const;
1210 double dpiAsDouble()
const;
1216 QString composerTemplate()
const;
1234 QString externalWMSUri(
const QString &
id )
const;
1240 bool withGeometry()
const;
1246 bool withMapTip()
const;
1252 QString wmtver()
const;
1261 QString layoutParameter(
const QString &
id,
bool &ok )
const;
1268 QStringList atlasPk()
const;
1274 QMap<DxfFormatOption, QString> dxfFormatOptions()
const;
1280 QStringList dxfLayerAttributes()
const;
1286 bool dxfUseLayerTitleAsName()
const;
1292 double dxfScale()
const;
1304 QString dxfCodec()
const;
1310 QMap<QString, QString> dimensionValues()
const;
1313 static bool isExternalLayer(
const QString &name );
1315 bool loadParameter(
const QString &name,
const QString &value )
override;
1321 void raiseError(
const QString &msg )
const;
1322 void log(
const QString &msg )
const;
1326 QMultiMap<QString, QgsWmsParametersFilter> layerFilters(
const QStringList &layers )
const;
1328 QMap<QgsWmsParameter::Name, QgsWmsParameter> mWmsParameters;
1329 QMap<QString, QMap<QString, QString> > mExternalWMSParameters;
1330 QList<QgsProjectVersion> mVersions;
A rectangle specified with double values.
QgsWmsParameter::Name mName
QList< QgsWmsParametersLayer > mLayers
A geometry is the spatial representation of a feature.
Format
Output format for the response.
const QgsCoordinateReferenceSystem & crs
DxfFormatOption
Options for DXF format.
A class to describe the version of a project.
Provides an interface to retrieve and manipulate WMS parameters received from the client...
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
QList< QgsWmsParametersHighlightLayer > mHighlightLayers
QgsWmsParametersFilter::Type mType
QgsOgcUtils::FilterVersion mVersion
FilterVersion
OGC filter version.
Median cut implementation.
QList< QgsWmsParametersExternalLayer > mExternalLayers
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from ...
QList< QgsWmsParametersFilter > mFilter
WMS parameter received from the client.
Name
Available parameters for WMS requests.
Definition of a parameter with basic conversion methods.