18 #ifndef QGSWMSPARAMETERS_H 19 #define QGSWMSPARAMETERS_H 70 float mBufferSize = 0;
77 bool mHasExtent =
false;
184 const QVariant::
Type type = QVariant::String,
185 const QVariant defaultValue = QVariant( "" ) );
195 bool isValid() const override;
204 QStringList toStyleList( const
char delimiter = ',' ) const;
212 QList<
QgsGeometry> toGeomList( const
char delimiter = ',' ) const;
220 QList<
int> toIntList( const
char delimiter = ',' ) const;
228 QList<
double> toDoubleList( const
char delimiter = ',' ) const;
236 QList<QColor> toColorList( const
char delimiter = ',' ) const;
257 double toDouble() const;
264 QColor toColor() const;
280 QString loadUrl() const;
286 void raiseError() const;
355 QString width()
const;
364 int widthAsInt()
const;
370 QString height()
const;
379 int heightAsInt()
const;
386 QString srcWidth()
const;
396 int srcWidthAsInt()
const;
403 QString srcHeight()
const;
413 int srcHeightAsInt()
const;
425 bool versionIsValid(
const QString version )
const;
431 QString bbox()
const;
445 QString sldBody()
const;
451 QStringList selections()
const;
457 QStringList filters()
const;
463 QString filterGeom()
const;
469 QStringList opacities()
const;
478 QList<int> opacitiesAsInt()
const;
484 QStringList allLayersNickname()
const;
490 QStringList queryLayersNickname()
const;
496 QStringList allStyles()
const;
502 QList<QgsWmsParametersLayer> layersParameters()
const;
509 QString polygonTolerance()
const;
516 QString lineTolerance()
const;
523 QString pointTolerance()
const;
530 int polygonToleranceAsInt()
const;
537 int lineToleranceAsInt()
const;
544 int pointToleranceAsInt()
const;
550 QString formatAsString()
const;
563 QString infoFormatAsString()
const;
569 bool infoFormatIsImage()
const;
576 QString imageQuality()
const;
583 int imageQualityAsInt()
const;
590 Format infoFormat()
const;
597 int infoFormatVersion()
const;
663 QString rule()
const;
669 QString ruleLabel()
const;
677 bool ruleLabelAsBool()
const;
683 QString showFeatureCount()
const;
691 bool showFeatureCountAsBool()
const;
697 QString featureCount()
const;
705 int featureCountAsInt()
const;
711 QString scale()
const;
719 double scaleAsDouble()
const;
725 QString boxSpace()
const;
733 double boxSpaceAsDouble()
const;
739 QString layerSpace()
const;
747 double layerSpaceAsDouble()
const;
753 QString layerTitleSpace()
const;
761 double layerTitleSpaceAsDouble()
const;
767 QString symbolSpace()
const;
775 double symbolSpaceAsDouble()
const;
781 QString iconLabelSpace()
const;
789 double iconLabelSpaceAsDouble()
const;
795 QString symbolWidth()
const;
803 double symbolWidthAsDouble()
const;
809 QString symbolHeight()
const;
817 double symbolHeightAsDouble()
const;
824 QFont layerFont()
const;
830 QString layerFontFamily()
const;
836 QString layerFontBold()
const;
844 bool layerFontBoldAsBool()
const;
850 QString layerFontItalic()
const;
858 bool layerFontItalicAsBool()
const;
864 QString layerFontSize()
const;
872 double layerFontSizeAsDouble()
const;
878 QString layerFontColor()
const;
886 QColor layerFontColorAsColor()
const;
893 QFont itemFont()
const;
899 QString itemFontFamily()
const;
905 QString itemFontBold()
const;
913 bool itemFontBoldAsBool()
const;
919 QString itemFontItalic()
const;
927 bool itemFontItalicAsBool()
const;
933 QString itemFontSize()
const;
941 double itemFontSizeAsDouble()
const;
947 QString itemFontColor()
const;
955 QColor itemFontColorAsColor()
const;
961 QString layerTitle()
const;
969 bool layerTitleAsBool()
const;
981 QList<QgsWmsParametersHighlightLayer> highlightLayersParameters()
const;
987 QStringList highlightGeom()
const;
995 QList<QgsGeometry> highlightGeomAsGeom()
const;
1001 QStringList highlightSymbol()
const;
1007 QStringList highlightLabelString()
const;
1013 QStringList highlightLabelColor()
const;
1021 QList<QColor> highlightLabelColorAsColor()
const;
1027 QStringList highlightLabelSize()
const;
1035 QList<int> highlightLabelSizeAsInt()
const;
1041 QStringList highlightLabelWeight()
const;
1049 QList<int> highlightLabelWeightAsInt()
const;
1055 QStringList highlightLabelFont()
const;
1061 QStringList highlightLabelBufferSize()
const;
1069 QList<double> highlightLabelBufferSizeAsFloat()
const;
1075 QStringList highlightLabelBufferColor()
const;
1083 QList<QColor> highlightLabelBufferColorAsColor()
const;
1089 QString wmsPrecision()
const;
1098 int wmsPrecisionAsInt()
const;
1104 QString transparent()
const;
1113 bool transparentAsBool()
const;
1119 QString backgroundColor()
const;
1128 QColor backgroundColorAsColor()
const;
1134 QString dpi()
const;
1143 double dpiAsDouble()
const;
1149 QString composerTemplate()
const;
1167 QString externalWMSUri(
const QString &
id )
const;
1173 bool withGeometry()
const;
1179 bool withMapTip()
const;
1185 QString wmtver()
const;
1194 QString layoutParameter(
const QString &
id,
bool &ok )
const;
1197 bool loadParameter(
const QString &name,
const QString &value )
override;
1203 void raiseError(
const QString &msg )
const;
1204 void log(
const QString &msg )
const;
1206 QMultiMap<QString, QgsWmsParametersFilter> layerFilters(
const QStringList &layers )
const;
1208 QMap<QgsWmsParameter::Name, QgsWmsParameter> mWmsParameters;
1209 QMap<QString, QMap<QString, QString> > mExternalWMSParameters;
1210 QList<QgsProjectVersion> mVersions;
A rectangle specified with double values.
QList< QgsWmsParametersLayer > mLayers
A geometry is the spatial representation of a feature.
Format
Output format for the response.
const QgsCoordinateReferenceSystem & crs
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.
Map renderer for WMS requests.
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.