Skip to content

Commit

Permalink
check for wmst dimensions when updating layer properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Samweli committed Aug 12, 2020
1 parent 0b3ec39 commit 14c9735
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/providers/wms/qgswmscapabilities.h
Expand Up @@ -204,6 +204,15 @@ struct QgsWmsDimensionProperty

return QgsDateTimeRange();
}

bool operator== ( const QgsWmsDimensionProperty &other ) const
{
return name == other.name && units == other.units &&
unitSymbol == other.unitSymbol && defaultValue == other.defaultValue &&
extent == other.extent && multipleValues == other.multipleValues &&
nearestValue == other.nearestValue && current == other.current;
}

};

//! Logo URL Property structure
Expand Down Expand Up @@ -347,6 +356,8 @@ struct QgsWmsLayerProperty
return false;
if ( !( abstract == layerProperty.abstract ) )
return false;
if ( !( dimensions == layerProperty.dimensions ) )
return false;

return true;
}
Expand Down

0 comments on commit 14c9735

Please sign in to comment.