30 const QVariant::Type type,
31 const QVariant defaultValue )
60 const QString msg = QString(
"%1 ('%2') cannot be converted into a list of geometries" ).arg(
name(
mName ),
toString(),
typeName() );
74 const QString msg = QString(
"%1 ('%2') cannot be converted into a rectangle" ).arg(
name(
mName ),
toString(),
typeName() );
97 const QUrl url =
toUrl();
104 const QString msg = QString(
"%1 request error for %2" ).arg(
name(
mName ), url.toString() );
144 const QString msg = QString(
"%1 ('%2') cannot be converted into a list of colors" ).arg(
name(
mName ),
toString(),
typeName() );
158 const QString msg = QString(
"%1 ('%2') cannot be converted into a list of int" ).arg(
name(
mName ),
toString(),
typeName() );
172 const QString msg = QString(
"%1 ('%2') cannot be converted into a list of float" ).arg(
name(
mName ),
toString(),
typeName() );
194 const QMetaEnum metaEnum( QMetaEnum::fromType<QgsWmsParameter::Name>() );
195 return metaEnum.valueToKey( name );
200 const QMetaEnum metaEnum( QMetaEnum::fromType<QgsWmsParameter::Name>() );
253 save( pIcLabelSpace );
256 save( pItFontFamily );
266 save( pItFontItalic );
275 QVariant(
"black" ) );
276 save( pItFontColor );
279 save( pHighlightGeom );
284 save( pShowFeatureCount );
287 save( pHighlightSymbol );
290 save( pHighlightLabel );
294 QVariant(
"black" ) );
295 save( pHighlightColor );
298 save( pHighlightFontSize );
301 save( pHighlightFontWeight );
304 save( pHighlightFont );
308 QVariant(
"black" ) );
309 save( pHighlightBufferColor );
312 save( pHighlightBufferSize );
395 save( pQueryLayers );
400 save( pFeatureCount );
408 save( pLayerFtFamily );
413 save( pLayerFtBold );
418 save( pLayerFtItalic );
423 save( pLayerFtSize );
427 QVariant(
"black" ) );
428 save( pLayerFtColor );
466 save( pWmsPrecision );
471 save( pTransparent );
475 QVariant(
"white" ) );
507 save( pWithGeometry );
524 if ( !sld.isEmpty() )
527 if ( !sldBody.isEmpty() )
534 bool QgsWmsParameters::loadParameter(
const QString &key,
const QString &
value )
538 const QRegExp composerParamRegExp( QStringLiteral(
"^MAP\\d+:" ) );
539 if ( key.contains( composerParamRegExp ) )
541 const int mapId = key.mid( 3, key.indexOf(
':' ) - 3 ).toInt();
542 const QString theKey = key.mid( key.indexOf(
':' ) + 1 );
565 mWmsParameters[name].mValue =
value;
566 if ( ! mWmsParameters[name].isValid() )
568 mWmsParameters[name].raiseError();
575 int separator = key.indexOf( QStringLiteral(
":" ) );
576 if ( separator >= 1 )
578 QString
id = key.left( separator );
579 QString param = key.right( key.length() - separator - 1 );
580 mExternalWMSParameters[id].insert( param, value );
592 log( QStringLiteral(
"WMS Request parameters:" ) );
593 for (
auto parameter : mWmsParameters.toStdMap() )
595 const QString value = parameter.second.toString();
597 if ( ! value.isEmpty() )
601 if ( parameter.second.mId >= 0 )
603 name = QStringLiteral(
"%1:%2" ).arg( QString::number( parameter.second.mId ), name );
606 log( QStringLiteral(
" - %1 : %2" ).arg( name, value ) );
611 log( QStringLiteral(
" - VERSION : %1" ).arg(
version() ) );
614 void QgsWmsParameters::save(
const QgsWmsParameter ¶meter,
bool multi )
618 mWmsParameters.insertMulti( parameter.
mName, parameter );
622 mWmsParameters[ parameter.
mName ] = parameter;
649 if ( !srs.isEmpty() && crs.isEmpty() )
651 else if ( srs.isEmpty() && !crs.isEmpty() )
653 else if ( !srs.isEmpty() && !crs.isEmpty() )
726 const QString vStr =
version();
730 if ( vStr.isEmpty() )
756 if ( fStr.isEmpty() )
760 if ( fStr.compare( QLatin1String(
"jpg" ), Qt::CaseInsensitive ) == 0
761 || fStr.compare( QLatin1String(
"jpeg" ), Qt::CaseInsensitive ) == 0
762 || fStr.compare( QLatin1String(
"image/jpeg" ), Qt::CaseInsensitive ) == 0 )
783 if ( fStr.isEmpty() )
786 if ( fStr.startsWith( QLatin1String(
"text/xml" ), Qt::CaseInsensitive ) )
788 else if ( fStr.startsWith( QLatin1String(
"text/html" ), Qt::CaseInsensitive ) )
790 else if ( fStr.startsWith( QLatin1String(
"text/plain" ), Qt::CaseInsensitive ) )
792 else if ( fStr.startsWith( QLatin1String(
"application/vnd.ogc.gml" ), Qt::CaseInsensitive ) )
806 if ( fStr.startsWith( QLatin1String(
"application/vnd.ogc.gml/3" ), Qt::CaseInsensitive ) )
1110 font.fromString(
"" );
1126 font.fromString(
"" );
1271 QStringList results;
1273 while ( pos < filter.size() )
1275 if ( pos + 1 < filter.size() && filter[pos] ==
'(' && filter[pos + 1] ==
'<' )
1278 int posEnd = filter.indexOf(
"Filter>)", pos );
1281 posEnd = filter.size();
1283 results.append( filter.mid( pos + 1, posEnd - pos + 6 ) );
1286 else if ( pos + 1 < filter.size() && filter[pos] ==
'(' && filter[pos + 1] ==
')' )
1289 results.append(
"" );
1292 else if ( filter[pos] ==
'<' )
1295 results.append( filter.mid( pos ) );
1301 int posEnd = filter.indexOf(
';', pos + 1 );
1304 posEnd = filter.size();
1306 results.append( filter.mid( pos, posEnd - pos ) );
1337 return layer << layers;
1349 return style << styles;
1352 QMultiMap<QString, QgsWmsParametersFilter> QgsWmsParameters::layerFilters(
const QStringList &layers )
const 1354 const QString nsWfs2 = QStringLiteral(
"http://www.opengis.net/fes/2.0" );
1355 const QString prefixWfs2 = QStringLiteral(
"<fes:" );
1357 const QStringList rawFilters =
filters();
1358 QMultiMap<QString, QgsWmsParametersFilter>
filters;
1359 for (
int i = 0;
i < rawFilters.size();
i++ )
1361 const QString f = rawFilters[
i];
1362 if ( f.startsWith( QLatin1String(
"<" ) ) \
1363 && f.endsWith( QLatin1String(
"Filter>" ) ) \
1364 &&
i < layers.size() )
1371 if ( filter.
mFilter.contains( nsWfs2 ) \
1372 || filter.
mFilter.contains( prefixWfs2 ) )
1377 filters.insert( layers[
i], filter );
1379 else if ( !f.isEmpty() )
1383 const int colonIndex = f.indexOf(
':' );
1384 if ( colonIndex != -1 )
1386 const QString layer = f.section(
':', 0, 0 );
1387 const QString filter = f.section(
':', 1 );
1389 parametersFilter.
mFilter = filter;
1391 filters.insert( layer, parametersFilter );
1396 raiseError( QStringLiteral(
"FILTER ('" ) + filterStr + QStringLiteral(
"') is not properly formatted" ) );
1409 const QMultiMap<QString, QgsWmsParametersFilter>
filters = layerFilters( layers );
1413 QMultiMap<QString, QString> layerSelections;
1414 for (
const QString &s : selection )
1416 const QStringList splits = s.split(
':' );
1417 if ( splits.size() == 2 )
1419 layerSelections.insert( splits[0], splits[1] );
1424 raiseError( QStringLiteral(
"SELECTION ('" ) + selStr + QStringLiteral(
"') is not properly formatted" ) );
1428 QList<QgsWmsParametersLayer> parameters;
1429 for (
int i = 0;
i < layers.size();
i++ )
1431 QString layer = layers[
i];
1435 if (
i < styles.count() )
1438 if (
i < opacities.count() )
1441 if ( filters.contains( layer ) )
1443 auto it = filters.find( layer );
1444 while ( it != filters.end() && it.key() == layer )
1446 param.
mFilter.append( it.value() );
1451 if ( layerSelections.contains( layer ) )
1453 QMultiMap<QString, QString>::const_iterator it;
1454 it = layerSelections.find( layer );
1455 while ( it != layerSelections.end() && it.key() == layer )
1462 parameters.append( param );
1470 QList<QgsWmsParametersHighlightLayer> params;
1481 int nLayers = std::min( geoms.size(), slds.size() );
1482 for (
int i = 0;
i < nLayers;
i++ )
1485 param.
mName = QStringLiteral(
"highlight_" ) + QString::number(
i );
1487 param.
mSld = slds[
i];
1489 if (
i < labels.count() )
1492 if (
i < colors.count() )
1495 if (
i < sizes.count() )
1498 if (
i < weights.count() )
1501 if (
i < fonts.count() )
1502 param.
mFont = fonts[
i ];
1504 if (
i < bufferColors.count() )
1507 if (
i < bufferSizes.count() )
1510 params.append( param );
1545 if ( extentStr.isEmpty() )
1550 QString pMapId = QStringLiteral(
"MAP" ) + QString::number( mapId );
1580 double gridx( -1 ), gridy( -1 );
1594 if ( gridx != -1 && gridy != -1 )
1615 QList<QgsWmsParametersLayer> lParams;
1616 for (
int i = 0;
i < layers.size();
i++ )
1618 QString layer = layers[
i];
1622 if (
i < styles.count() )
1625 lParams.append( lParam );
1630 QList<QgsWmsParametersHighlightLayer> hParams;
1632 QList<QgsGeometry> geoms;
1660 QList<QColor> colors;
1681 QList<QColor> bufferColors;
1688 QList<double> bufferSizes;
1695 int nHLayers = std::min( geoms.size(), slds.size() );
1696 for (
int i = 0;
i < nHLayers;
i++ )
1699 hParam.
mName = pMapId + QStringLiteral(
"_highlight_" ) + QString::number(
i );
1701 hParam.
mSld = slds[
i];
1703 if (
i < labels.count() )
1706 if (
i < colors.count() )
1709 if (
i < sizes.count() )
1712 if (
i < weights.count() )
1715 if (
i < fonts.count() )
1716 hParam.
mFont = fonts[
i ];
1718 if (
i < bufferColors.count() )
1721 if (
i < bufferSizes.count() )
1724 hParams.append( hParam );
1733 if ( !mExternalWMSParameters.contains(
id ) )
1739 const QMap<QString, QString> ¶mMap = mExternalWMSParameters[ id ];
1740 QMap<QString, QString>::const_iterator paramIt = paramMap.constBegin();
1741 for ( ; paramIt != paramMap.constEnd(); ++paramIt )
1743 wmsUri.
setParam( paramIt.key().toLower(), paramIt.value() );
1763 void QgsWmsParameters::log(
const QString &msg )
const 1768 void QgsWmsParameters::raiseError(
const QString &msg )
const 1777 for (
const auto ¶m : mWmsParameters.values( name ) )
1779 if ( param.mId ==
id )
bool itemFontItalicAsBool() const
Returns ITEMFONTITALIC as a boolean or its default value if not defined.
int toInt(bool &ok) const
Converts the parameter into an integer.
QString toString() const
Converts the parameter into a string.
int widthAsInt() const
Returns WIDTH parameter as an int or its default value if not defined.
A rectangle specified with double values.
QString itemFontSize() const
Returns ITEMFONTSIZE parameter or an empty string if not defined.
bool isEmpty() const
Returns true if the rectangle is empty.
QStringList selections() const
Returns the list of feature selection found in SELECTION parameter.
QString sldBody() const
Returns SLD_body if defined or an empty string.
double toDouble(bool &ok) const
Converts the parameter into a double.
QList< QgsGeometry > toGeomList(bool &ok, char delimiter= ',') const
Converts the parameter into a list of geometries.
void setBoxSpace(double s)
QStringList opacities() const
Returns the list of opacities found in OPACITIES parameter.
QString symbolSpace() const
Returns SYMBOLSPACE parameter or an empty string if not defined.
QMap< QString, QString > mUnmanagedParameters
QString loadUrl() const
Loads the data associated to the parameter converted into an url.
double layerTitleSpaceAsDouble() const
Returns LAYERTITLESPACE as a double.
QString infoFormatAsString() const
Returns INFO_FORMAT parameter as a string.
QStringList highlightLabelSize() const
Returns HIGHLIGHT_LABELSIZE as a list of string.
QStringList queryLayersNickname() const
Returns nickname of layers found in QUERY_LAYERS parameter.
QgsWmsParameter::Name mName
int wmsPrecisionAsInt() const
Returns WMS_PRECISION parameter as an int or its default value if not defined.
QList< QgsWmsParametersLayer > mLayers
virtual bool isValid() const
Returns true if the parameter is valid, false otherwise.
double itemFontSizeAsDouble() const
Returns ITEMFONTSIZE as a double.
QString layerFontSize() const
Returns LAYERFONTSIZE parameter or an empty string if not defined.
QString loadUrl(bool &ok) const
Loads the data associated to the parameter converted into an url.
void setSymbolSize(QSizeF s)
QString value(const QString &key) const
Returns the value of a parameter.
QString layerTitle() const
Returns LAYERTITLE parameter or an empty string if not defined.
static QString name(const QgsWmsParameter::Name)
Converts a parameter's name into its string representation.
QList< QColor > highlightLabelColorAsColor() const
Returns HIGHLIGHT_LABELCOLOR as a list of color.
QStringList toStringList(char delimiter= ',', bool skipEmptyParts=true) const
Converts the parameter into a list of strings.
QString j() const
Returns J parameter or an empty string if not defined.
static void raiseError(const QString &msg)
Raises an exception in case of an invalid parameters.
double layerFontSizeAsDouble() const
Returns LAYERFONTSIZE as a double.
QColor toColor(bool &ok) const
Converts the parameter into a color.
bool isValid() const override
Returns true if the parameter is valid, false otherwise.
Format
Output format for the response.
QColor toColor() const
Converts the parameter into a color.
void load(const QUrlQuery &query)
Loads new parameters.
bool withGeometry() const
Returns if the client wants the feature info response with geometry information.
QStringList filters() const
Returns the list of filters found in FILTER parameter.
Exception thrown in case of malformed request.
double symbolSpaceAsDouble() const
Returns SYMBOLSPACE as a double or its default value if not defined.
bool ruleLabelAsBool() const
Returns RULELABEL as a bool.
QString typeName() const
Returns the type of the parameter as a string.
QString crs() const
Returns CRS or an empty string if none is defined.
QString layerFontBold() const
Returns LAYERFONTBOLD parameter or an empty string if not defined.
double boxSpaceAsDouble() const
Returns BOXSPACE as a double or its default value if not defined.
QString symbolHeight() const
Returns SYMBOLHEIGHT parameter or an empty string if not defined.
QList< double > toDoubleList(bool &ok, char delimiter= ',') const
Converts the parameter into a list of doubles.
bool layerTitleAsBool() const
Returns LAYERTITLE as a bool or its default value if not defined.
QString dpi() const
Returns DPI parameter or an empty string if not defined.
QString boxSpace() const
Returns BOXSPACE parameter or an empty string if not defined.
QString layerTitleSpace() const
Returns LAYERTITLESPACE parameter or an empty string if not defined.
int xAsInt() const
Returns X parameter as an int or its default value if not defined.
QString bbox() const
Returns BBOX if defined or an empty string.
void dump() const
Dumps parameters.
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...
QList< QgsWmsParametersHighlightLayer > highlightLayersParameters() const
Returns parameters for each highlight layer.
Format format() const
Returns format.
QList< QgsGeometry > highlightGeomAsGeom() const
Returns HIGHLIGHT_GEOM as a list of geometries.
QString symbolWidth() const
Returns SYMBOLWIDTH parameter or an empty string if not defined.
bool withMapTip() const
withMapTip
bool transparentAsBool() const
Returns TRANSPARENT parameter as a bool or its default value if not defined.
QColor itemFontColorAsColor() const
Returns ITEMFONTCOLOR as a color.
Format infoFormat() const
Returns infoFormat.
QString srcHeight() const
Returns SRCHEIGHT parameter or an empty string if not defined.
void setFont(const QFont &font)
The font for this style.
QString iconLabelSpace() const
Returns ICONLABELSPACE parameter or an empty string if not defined.
bool showFeatureCountAsBool() const
Returns SHOWFEATURECOUNT as a bool.
QList< QgsGeometry > toGeomList(const char delimiter= ',') const
Converts the parameter into a list of geometries.
double toDouble() const
Converts the parameter into a double.
QString version() const
Returns VERSION parameter as a string or an empty string if not defined.
int heightAsInt() const
Returns HEIGHT parameter as an int or its default value if not defined.
QString layerFontFamily() const
Returns LAYERFONTFAMILY parameter or an empty string if not defined.
A class to describe the version of a project.
QList< int > highlightLabelWeightAsInt() const
Returns HIGHLIGHT_LABELWEIGHT as a list of int.
Provides an interface to retrieve and manipulate WMS parameters received from the client...
QList< QColor > toColorList(bool &ok, char delimiter= ',') const
Converts the parameter into a list of colors.
static void logMessage(const QString &message, const QString &tag=QString(), Qgis::MessageLevel level=Qgis::Warning, bool notifyUser=true)
Adds a message to the log instance (and creates it if necessary).
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
QString formatAsString() const
Returns FORMAT parameter as a string.
QString filterGeom() const
Returns the filter geometry found in FILTER_GEOM parameter.
QList< QgsWmsParametersHighlightLayer > mHighlightLayers
int infoFormatVersion() const
Returns the infoFormat version for GML.
int polygonToleranceAsInt() const
Returns FI_POLYGON_TOLERANCE parameter as an integer.
void setTitle(const QString &t)
QList< int > opacitiesAsInt() const
Returns the list of opacities found in OPACITIES parameter as integers.
QgsWmsParameters()
Constructor for WMS parameters with default values only.
void setMargin(Side side, double margin)
void setParam(const QString &key, const QString &value)
Set generic param (generic mode)
int srcWidthAsInt() const
Returns SRCWIDTH parameter as an int or its default value if not defined.
bool versionIsValid(const QString version) const
Returns true if version is valid, false otherwise.
QString pointTolerance() const
Returns FI_POINT_TOLERANCE parameter or an empty string if not defined.
double dpiAsDouble() const
Returns DPI parameter as an int or its default value if not defined.
QString lineTolerance() const
Returns FI_LINE_TOLERANCE parameter or an empty string if not defined.
void setFontColor(const QColor &c)
QgsWmsParametersFilter::Type mType
QUrl toUrl() const
Converts the parameter into an url.
QList< QgsWmsParametersLayer > layersParameters() const
Returns parameters for each layer found in LAYER/LAYERS.
QgsRectangle toRectangle(bool &ok) const
Converts the parameter into a rectangle.
QgsOgcUtils::FilterVersion mVersion
double symbolHeightAsDouble() const
Returns SYMBOLHEIGHT as a double or its default value if not defined.
QStringList highlightSymbol() const
Returns HIGHLIGHT_SYMBOL as a list of string.
QString layoutParameter(const QString &id, bool &ok) const
Returns a layout parameter thanks to its id.
QFont layerFont() const
Returns the layer font (built thanks to the LAYERFONTFAMILY, LAYERFONTSIZE, LAYERFONTBOLD, ...
QByteArray encodedUri() const
Returns complete encoded uri (generic mode)
QString transparent() const
Returns TRANSPARENT parameter or an empty string if not defined.
QUrl toUrl(bool &ok) const
Converts the parameter into an url.
int featureCountAsInt() const
Returns FEATURE_COUNT as an integer.
Median cut implementation.
QStringList allLayersNickname() const
Returns nickname of layers found in LAYER and LAYERS parameters.
QString wmtver() const
Returns WMTVER parameter or an empty string if not defined.
QList< QColor > highlightLabelBufferColorAsColor() const
Returns HIGHLIGHT_LABELBUFFERCOLOR as a list of colors.
QgsRectangle toRectangle() const
Converts the parameter into a rectangle.
bool itemFontBoldAsBool() const
Returns ITEMFONTBOLD as a boolean or its default value if not defined.
void raiseError() const
Raises an error in case of an invalid conversion.
QString backgroundColor() const
Returns BGCOLOR parameter or an empty string if not defined.
void setLayerFontColor(const QColor &fontColor)
Sets layer font color to fontColor Overrides fontColor()
int jAsInt() const
Returns J parameter as an int or its default value if not defined.
QStringList highlightLabelString() const
Returns HIGHLIGHT_LABELSTRING as a list of string.
QgsLegendStyle & rstyle(QgsLegendStyle::Style s)
Returns reference to modifiable style.
QString featureCount() const
Returns FEATURE_COUNT parameter or an empty string if none is defined.
QColor layerFontColorAsColor() const
Returns LAYERFONTCOLOR as a color or its defined value if not defined.
QFont itemFont() const
Returns the item font (built thanks to the ITEMFONTFAMILY, ITEMFONTSIZE, ITEMFONTBOLD, ...
int srcHeightAsInt() const
Returns SRCHEIGHT parameter as an int or its default value if not defined.
QList< double > highlightLabelBufferSizeAsFloat() const
Returns HIGHLIGHT_LABELBUFFERSIZE as a list of float.
QString i() const
Returns I parameter or an empty string if not defined.
QStringList highlightLabelFont() const
Returns HIGHLIGHT_LABELFONT.
QList< double > toDoubleList(const char delimiter= ',') const
Converts the parameter into a list of doubles.
QString layerFontColor() const
Returns LAYERFONTCOLOR parameter or an empty string if not defined.
QList< int > highlightLabelSizeAsInt() const
Returns HIGHLIGHT_LABELSIZE as a list of int An exception is raised if an invalid size is found...
double iconLabelSpaceAsDouble() const
Returns ICONLABELSPACE as a double or its default value if not defined.
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from ...
QUrlQuery urlQuery() const
Returns a url query with underlying parameters.
QString externalWMSUri(const QString &id) const
Returns the external WMS uri.
double scaleAsDouble() const
Returns SCALE as a double.
QgsWmsParameter(const QgsWmsParameter::Name name=QgsWmsParameter::UNKNOWN, const QVariant::Type type=QVariant::String, const QVariant defaultValue=QVariant(""))
Constructor for QgsWmsParameter.
QList< QColor > toColorList(const char delimiter= ',') const
Converts the parameter into a list of colors.
double symbolWidthAsDouble() const
Returns SYMBOLWIDTH as a double or its default value if not defined.
QString ruleLabel() const
Returns RULELABEL parameter or an empty string if none is defined.
QString layerSpace() const
Returns LAYERSPACE parameter or an empty string if not defined.
QStringList highlightGeom() const
Returns HIGHLIGHT_GEOM as a list of string in WKT.
int pointToleranceAsInt() const
Returns FI_POINT_TOLERANCE parameter as an integer.
QStringList highlightLabelBufferColor() const
Returns HIGHLIGHT_LABELBUFFERCOLOR as a list of string.
int yAsInt() const
Returns Y parameter as an int or its default value if not defined.
QString wmsPrecision() const
Returns WMS_PRECISION parameter or an empty string if not defined.
QgsLegendSettings legendSettings() const
Returns legend settings.
QStringList highlightLabelColor() const
Returns HIGHLIGHT_LABELCOLOR as a list of string.
bool layerFontBoldAsBool() const
Returns LAYERFONTBOLD as a boolean or its default value if not defined.
QList< int > toIntList(const char delimiter= ',') const
Converts the parameter into a list of integers.
QgsRectangle bboxAsRectangle() const
Returns BBOX as a rectangle if defined and valid.
QString itemFontBold() const
Returns ITEMFONTBOLD parameter or an empty string if not defined.
QStringList allStyles() const
Returns styles found in STYLE and STYLES parameters.
QList< int > toIntList(bool &ok, char delimiter= ',') const
Converts the parameter into a list of integers.
QStringList highlightLabelWeight() const
Returns HIGHLIGHT_LABELWEIGHT as a list of string.
QString polygonTolerance() const
Returns FI_POLYGON_TOLERANCE parameter or an empty string if not defined.
QString srcWidth() const
Returns SRCWIDTH parameter or an empty string if not defined.
int toInt() const
Converts the parameter into an integer.
QString itemFontColor() const
Returns ITEMFONTCOLOR parameter or an empty string if not defined.
Class for storing the component parts of a PostgreSQL/RDBMS datasource URI.
QString y() const
Returns Y parameter or an empty string if not defined.
int iAsInt() const
Returns I parameter as an int or its default value if not defined.
QStringList highlightLabelBufferSize() const
Returns HIGHLIGHT_LABELBUFFERSIZE.
QString showFeatureCount() const
Returns SHOWFEATURECOUNT parameter or an empty string if none is defined.
QString x() const
Returns X parameter or an empty string if not defined.
QgsProjectVersion versionAsNumber() const
Returns VERSION parameter if defined or its default value.
QString itemFontItalic() const
Returns ITEMFONTITALIC parameter or an empty string if not defined.
QList< QgsWmsParametersFilter > mFilter
bool layerFontItalicAsBool() const
Returns LAYERFONTITALIC as a boolean or its default value if not defined.
WMS parameter received from the client.
QString itemFontFamily() const
Returns ITEMFONTFAMILY parameter or an empty string if not defined.
QgsWmsParametersComposerMap composerMapParameters(int mapId) const
Returns the requested parameters for a composer map parameter.
QString scale() const
Returns SCALE parameter or an empty string if none is defined.
QString imageQuality() const
Returns IMAGE_QUALITY parameter or an empty string if not defined.
QString layerFontItalic() const
Returns LAYERFONTITALIC parameter or an empty string if not defined.
QString height() const
Returns HEIGHT parameter or an empty string if not defined.
QString rule() const
Returns RULE parameter or an empty string if none is defined.
QString width() const
Returns WIDTH parameter or an empty string if not defined.
bool infoFormatIsImage() const
Checks if INFO_FORMAT parameter is one of the image formats (PNG, JPG).
int imageQualityAsInt() const
Returns IMAGE_QUALITY parameter as an integer.
QString composerTemplate() const
Returns TEMPLATE parameter or an empty string if not defined.
int lineToleranceAsInt() const
Returns FI_LINE_TOLERANCE parameter as an integer.
Name
Available parameters for WMS requests.
QColor backgroundColorAsColor() const
Returns BGCOLOR parameter as a QColor or its default value if not defined.
double layerSpaceAsDouble() const
Returns LAYERSPACE as a double or its default value if not defined.
Definition of a parameter with basic conversion methods.