The following commit has been merged in the master branch:
commit c9bbcd8a7bb0b28301126d4ec126d0cce5fbd572
Author: Marco Hugentobler <marco.hugentob...@sourcepole.ch>
Date:   Sun Mar 18 09:37:17 2012 +0100

    Restrict input type for zonal statistics to gdal rasters for now (switch to 
use QgsRasterDataProvider in the mid term)

diff --git a/src/plugins/zonal_statistics/qgszonalstatisticsdialog.cpp 
b/src/plugins/zonal_statistics/qgszonalstatisticsdialog.cpp
index db63971..779cd7b 100644
--- a/src/plugins/zonal_statistics/qgszonalstatisticsdialog.cpp
+++ b/src/plugins/zonal_statistics/qgszonalstatisticsdialog.cpp
@@ -61,7 +61,11 @@ void QgsZonalStatisticsDialog::insertAvailableLayers()
     QgsRasterLayer* rl = dynamic_cast<QgsRasterLayer*>( layer_it.value() );
     if ( rl )
     {
-      mRasterLayerComboBox->addItem( rl->name(), QVariant( rl->source() ) );
+      QgsRasterDataProvider* rp = rl->dataProvider();
+      if ( rp && rp->name() == "gdal" )
+      {
+        mRasterLayerComboBox->addItem( rl->name(), QVariant( rl->source() ) );
+      }
     }
     else
     {

-- 
The Quantum GIS in Debian project

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to