Skip to content
Permalink
Browse files

changes based on @nyalldawson review

  • Loading branch information
Samweli committed Dec 30, 2019
1 parent 4733102 commit 24a31467dfeee9949ae77ab29cddf49ea25eb20a
Showing with 6 additions and 6 deletions.
  1. +3 −3 src/providers/wms/qgswmscapabilities.cpp
  2. +3 −3 src/providers/wms/qgswmscapabilities.h
@@ -771,19 +771,19 @@ void QgsWmsCapabilities::parseDimension( const QDomElement &element, QgsWmsDimen
if ( !element.attribute( QStringLiteral( "multipleValues" ) ).isNull() )
{
QString multipleValuesAttribute = element.attribute( QStringLiteral( "multipleValues" ) );
dimensionProperty.multipleValues = ( multipleValuesAttribute == QLatin1String( "1" ) || multipleValuesAttribute == QLatin1String( "true" ) ) ? true : false ;
dimensionProperty.multipleValues = ( multipleValuesAttribute == QLatin1String( "1" ) || multipleValuesAttribute == QLatin1String( "true" ) );
}

if ( !element.attribute( QStringLiteral( "nearestValue" ) ).isNull() )
{
QString nearestValueAttribute = element.attribute( QStringLiteral( "nearestValue" ) );
dimensionProperty.nearestValue = ( nearestValueAttribute == QLatin1String( "1" ) || nearestValueAttribute == QLatin1String( "true" ) ) ? true : false ;
dimensionProperty.nearestValue = ( nearestValueAttribute == QLatin1String( "1" ) || nearestValueAttribute == QLatin1String( "true" ) );
}

if ( !element.attribute( QStringLiteral( "current" ) ).isNull() )
{
QString currentAttribute = element.attribute( QStringLiteral( "current" ) );
dimensionProperty.current = ( currentAttribute == QLatin1String( "1" ) || currentAttribute == QLatin1String( "true" ) ) ? true : false ;
dimensionProperty.current = ( currentAttribute == QLatin1String( "1" ) || currentAttribute == QLatin1String( "true" ) );
}

dimensionProperty.extent = element.text();
@@ -178,13 +178,13 @@ struct QgsWmsDimensionProperty
QString extent;

//! Optional, determines whether multiple values of the dimension can be requested
bool multipleValues;
bool multipleValues = false;

//! Optional, whether nearest value of the dimension will be returned, if requested.
bool nearestValue;
bool nearestValue = false;

//! Optional, valid only for temporal exents, determines whether data are normally kept current.
bool current;
bool current = false;

};

0 comments on commit 24a3146

Please sign in to comment.
You can’t perform that action at this time.