Skip to content

Commit

Permalink
wcs - enabled histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Jul 29, 2012
1 parent d875c96 commit 53da893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -147,7 +147,10 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer* lyr, QgsMapCanv
{
// disable Pyramids tab completely
tabPagePyramids->setEnabled( false );
}

if ( !( provider->capabilities() & QgsRasterDataProvider::Histogram ) )
{
// disable Histogram tab completely
tabPageHistogram->setEnabled( false );
}
Expand Down
1 change: 1 addition & 0 deletions src/providers/wcs/qgswcsprovider.cpp
Expand Up @@ -1161,6 +1161,7 @@ int QgsWcsProvider::capabilities() const
{
int capability = NoCapabilities;
capability |= QgsRasterDataProvider::Identify;
capability |= QgsRasterDataProvider::Histogram;

if ( mHasSize )
{
Expand Down

0 comments on commit 53da893

Please sign in to comment.