18 #ifndef QGSWMSPARAMETERS_H 19 #define QGSWMSPARAMETERS_H 74 float mBufferSize = 0;
81 bool mHasExtent =
false;
191 const QVariant::Type type = QVariant::String,
192 const QVariant defaultValue = QVariant(
"" ) );
202 bool isValid()
const override;
211 QStringList toStyleList(
const char delimiter =
',' )
const;
219 QList<QgsGeometry> toGeomList(
const char delimiter =
',' )
const;
227 QList<int> toIntList(
const char delimiter =
',' )
const;
235 QList<double> toDoubleList(
const char delimiter =
',' )
const;
243 QList<QColor> toColorList(
const char delimiter =
',' )
const;
264 double toDouble()
const;
271 QColor toColor()
const;
287 QString loadUrl()
const;
293 void raiseError()
const;
299 QString name()
const;
395 QString width()
const;
404 int widthAsInt()
const;
410 QString height()
const;
419 int heightAsInt()
const;
426 QString srcWidth()
const;
436 int srcWidthAsInt()
const;
443 QString srcHeight()
const;
453 int srcHeightAsInt()
const;
465 bool versionIsValid(
const QString version )
const;
471 QString bbox()
const;
485 QString sldBody()
const;
491 QStringList selections()
const;
497 QStringList filters()
const;
503 QString filterGeom()
const;
509 QStringList opacities()
const;
518 QList<int> opacitiesAsInt()
const;
524 QStringList allLayersNickname()
const;
530 QStringList queryLayersNickname()
const;
536 QStringList allStyles()
const;
542 QList<QgsWmsParametersLayer> layersParameters()
const;
549 QString polygonTolerance()
const;
556 QString lineTolerance()
const;
563 QString pointTolerance()
const;
570 int polygonToleranceAsInt()
const;
577 int lineToleranceAsInt()
const;
584 int pointToleranceAsInt()
const;
590 QString formatAsString()
const;
596 static QString formatAsString(
Format format );
609 QString infoFormatAsString()
const;
615 bool infoFormatIsImage()
const;
622 QString imageQuality()
const;
629 int imageQualityAsInt()
const;
636 Format infoFormat()
const;
643 int infoFormatVersion()
const;
709 QString rule()
const;
715 QString ruleLabel()
const;
723 bool ruleLabelAsBool()
const;
729 QString showFeatureCount()
const;
737 bool showFeatureCountAsBool()
const;
743 QString featureCount()
const;
751 int featureCountAsInt()
const;
757 QString scale()
const;
765 double scaleAsDouble()
const;
771 QString boxSpace()
const;
779 double boxSpaceAsDouble()
const;
785 QString layerSpace()
const;
793 double layerSpaceAsDouble()
const;
799 QString layerTitleSpace()
const;
807 double layerTitleSpaceAsDouble()
const;
813 QString symbolSpace()
const;
821 double symbolSpaceAsDouble()
const;
827 QString iconLabelSpace()
const;
835 double iconLabelSpaceAsDouble()
const;
841 QString symbolWidth()
const;
849 double symbolWidthAsDouble()
const;
855 QString symbolHeight()
const;
863 double symbolHeightAsDouble()
const;
870 QFont layerFont()
const;
876 QString layerFontFamily()
const;
882 QString layerFontBold()
const;
890 bool layerFontBoldAsBool()
const;
896 QString layerFontItalic()
const;
904 bool layerFontItalicAsBool()
const;
910 QString layerFontSize()
const;
918 double layerFontSizeAsDouble()
const;
924 QString layerFontColor()
const;
932 QColor layerFontColorAsColor()
const;
939 QFont itemFont()
const;
945 QString itemFontFamily()
const;
951 QString itemFontBold()
const;
959 bool itemFontBoldAsBool()
const;
965 QString itemFontItalic()
const;
973 bool itemFontItalicAsBool()
const;
979 QString itemFontSize()
const;
987 double itemFontSizeAsDouble()
const;
993 QString itemFontColor()
const;
1001 QColor itemFontColorAsColor()
const;
1007 QString layerTitle()
const;
1015 bool layerTitleAsBool()
const;
1027 QList<QgsWmsParametersHighlightLayer> highlightLayersParameters()
const;
1033 QList<QgsWmsParametersExternalLayer> externalLayersParameters()
const;
1039 QStringList highlightGeom()
const;
1047 QList<QgsGeometry> highlightGeomAsGeom()
const;
1053 QStringList highlightSymbol()
const;
1059 QStringList highlightLabelString()
const;
1065 QStringList highlightLabelColor()
const;
1073 QList<QColor> highlightLabelColorAsColor()
const;
1079 QStringList highlightLabelSize()
const;
1087 QList<int> highlightLabelSizeAsInt()
const;
1093 QStringList highlightLabelWeight()
const;
1101 QList<int> highlightLabelWeightAsInt()
const;
1107 QStringList highlightLabelFont()
const;
1113 QStringList highlightLabelBufferSize()
const;
1121 QList<double> highlightLabelBufferSizeAsFloat()
const;
1127 QStringList highlightLabelBufferColor()
const;
1135 QList<QColor> highlightLabelBufferColorAsColor()
const;
1141 QString wmsPrecision()
const;
1150 int wmsPrecisionAsInt()
const;
1156 QString transparent()
const;
1165 bool transparentAsBool()
const;
1171 QString backgroundColor()
const;
1180 QColor backgroundColorAsColor()
const;
1186 QString dpi()
const;
1195 double dpiAsDouble()
const;
1201 QString composerTemplate()
const;
1219 QString externalWMSUri(
const QString &
id )
const;
1225 bool withGeometry()
const;
1231 bool withMapTip()
const;
1237 QString wmtver()
const;
1246 QString layoutParameter(
const QString &
id,
bool &ok )
const;
1253 QStringList atlasPk()
const;
1259 QMap<DxfFormatOption, QString> dxfFormatOptions()
const;
1265 QStringList dxfLayerAttributes()
const;
1271 bool dxfUseLayerTitleAsName()
const;
1277 double dxfScale()
const;
1289 QString dxfCodec()
const;
1292 static bool isExternalLayer(
const QString &name );
1294 bool loadParameter(
const QString &name,
const QString &value )
override;
1300 void raiseError(
const QString &msg )
const;
1301 void log(
const QString &msg )
const;
1305 QMultiMap<QString, QgsWmsParametersFilter> layerFilters(
const QStringList &layers )
const;
1307 QMap<QgsWmsParameter::Name, QgsWmsParameter> mWmsParameters;
1308 QMap<QString, QMap<QString, QString> > mExternalWMSParameters;
1309 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.