Skip to content
Permalink
Browse files

wcs - enabled histogram

  • Loading branch information
blazek committed Jul 29, 2012
1 parent d875c96 commit 53da89328065c829a295259e78630075dc22fea5
Showing with 4 additions and 0 deletions.
  1. +3 −0 src/app/qgsrasterlayerproperties.cpp
  2. +1 −0 src/providers/wcs/qgswcsprovider.cpp
@@ -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 );
}
@@ -1161,6 +1161,7 @@ int QgsWcsProvider::capabilities() const
{
int capability = NoCapabilities;
capability |= QgsRasterDataProvider::Identify;
capability |= QgsRasterDataProvider::Histogram;

if ( mHasSize )
{

0 comments on commit 53da893

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